<接口地址>: /alertapi/messages/stats
<请求方式>:GET
<请求类型>:URL参数
<响应类型>:JSON
<请求参数>:
参数名称 | 是否必须 | 参数类型 | 默认值 | 示例 | 备注 |
token | 是 | string | 请求token(在headers里) | ||
msgid | 是 | string | 消息id |
<请求示例>:
curl -H "token: xxxxxxxxxxxxxxxxxxxx" https://v6-api.jiankongbao.com/alertapi/messages/stats?msgid=XXXX
<响应参数>:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
data | Array | 必须 | 记录信息 | 备注: 记录信息 | |
send_content | string | 必须 | 通知内容 | 备注: 通知内容 | |
alert_id | string | 必须 | 告警id | 备注: 告警id | |
send_time | string | 必须 | 发送时间 | 备注: 发送时间 | |
medium_addr | string | 必须 | 通知地址(手机号,邮箱地址,回调地址等) | 备注: 通知地址(手机号,邮箱地址,回调地址等) | |
type | string | 必须 | 消息类型, | 备注: 消息类型, |
<响应示例>:
{
"data": [
{
"alert_id": "62e25019da84f",
"send_timestamp": 1658998809,
"send_time": "17:00:09",
"medium_addr": "jkb_out123@163.com",
"type": "email",
"medium_type": 0,
"send_content": "",
"user_id": 400589
},
{
"alert_id": "62e25019da88b",
"send_timestamp": 1658998809,
"send_time": "17:00:09",
"medium_addr": "16666663633",
"type": "sms",
"medium_type": 1,
"send_content": "监控项目 [test] 2022/07/28 16:59:55 陕西西安电信、辽宁大连联通等212个监测点 当前响应时间大于1ms",
"user_id": 400589
}
]
}