{
??"dingTalk": {
??
"dingTalk"
: {
????"corpId":?"",
????
"corpId"
:?
""
,
????"agentId":?"",
"agentId"
????"appKey":?"",
"appKey"
????"appSecret":?"",
"appSecret"
????"robotCode":?"非必填"
"robotCode"
"非必填"
??},
??"email": {
"email"
????"host":?"192.168.7.224",
"host"
"192.168.7.224"
????"port": 25,
"port"
: 25,
????"protocol":?"smtp",
"protocol"
"smtp"
????"email":?"mailtest5@test.com",
"mailtest5@test.com"
????"username":?"mailtest5@test.com",
"username"
????"password":?"123456",
"password"
"123456"
????"protocolSelect": [{
"protocolSelect"
: [{
??????"name":?"smtp",
??????
"name"
??????"port": 25
: 25
????}, {
??????"name":?"pop3",
"pop3"
??????"port": 110
: 110
??????"name":?"iamp",
"iamp"
??????"port": 143
: 143
????}]
??"comWechat": {
"comWechat"
????"secret":?""
"secret"
??"zabbix": {
"zabbix"
????"host":?"",
????"port": 10051,
: 10051,
????"hostName":?"",
"hostName"
????"monitorKey":?""
"monitorKey"
??"copyToList": [{
"copyToList"
????"name": "zhangsan",
:
"zhangsan"
????"email": "mailtest@test.com",
"mailtest@test.com"
????"enableEmail":?true,
"enableEmail"
true
????"enableComWechat":?false
"enableComWechat"
false
??}]
}
????"corpId":?"企业ID",
"企业ID"
????"agentId":?"应用ID",
"应用ID"
????"appKey":?"应用Key",
"应用Key"
????"appSecret":?"应用Secret",
"应用Secret"
??"mobile":?"手机号"
"mobile"
"手机号"
添加接口调用权限(根据手机号查询用户):添加接口调用权限 - 钉钉开放平台 (dingtalk.com)
??"title":?"标题",
"title"
"标题"
??"text":?"文本"
"text"
"文本"
??"agent_id":?"企业ID",
"agent_id"
??"userid_list":?"用户id",
"userid_list"
"用户id"
??"msg": {
"msg"
????"msgtype":?"text",
"msgtype"
????"text": {
??? ??"content":?"告警消息"
??? ??
"content"
"告警消息"
????}
??}