INFO-企业微信webhook报警
更新时间: 2025-08-22 15:07:21
阅读 2112
INFO-企业微信webhook报警
适用模块
报警组件 easyalert
具体说明
企业微信机器人告警信息发至群组
使用示例
一、获取群机器人信息
1、群管理添加机器人
2、查看机器人webhook 地址
调试参照: https://developer.work.weixin.qq.com/document/path/99110
二、easyops advanced配置
1、template.channel.conf:
3 = {
id = 6
name = yixin
clz = "qw-webhook"
text = "企微-webhook"
enable = true
channelIdentification = 'wecom-webhook'
contentType = 'text'
}
2、添加template.plugin_qw_webhook.conf string类型,
下属配置url换成webhook 地址
name = "qw-webhook"
post = true
url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxx"
//
setting = {
wrap = "\n"
}
//
command = """
content = org.apache.commons.lang3.StringEscapeUtils.escapeJson(content);
"""
header = {
}
param = {
}
body = {
"msgtype": "text",
"text": {
"content": "#{content}"
}
}
3、更新当前配置组-批量应用该版本-同步配置并重启服务
作者:林帅
文档反馈
以上内容对您是否有帮助?