查询告警源趋势统计数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
请求语法
POST /events/querySourceEventTrend HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
body | object | 否 | A short description of struct | |
requestId | string | 否 | 请求 ID | xxxx |
instanceId | long | 否 | 报警或者事件 ID | 1000 |
instanceType | string | 否 | 类型 | INCIDENT |
startTime | string | 否 | 开始时间 | 2020-10-10 00:00:00 |
endTime | string | 否 | 结束时间 | 2020-10-10 23:59:59 |
timeUnit | long | 否 | 时间单位毫秒 | 1000 |
{"instanceId":78958441,"instanceType":"ALERT","clientToken":"82af9e74-6592-435d-aa06-345562cdd37c"}
返回参数
{ "requestId": "gdgsdgsggsdg", "data": { "maxSustainTime": 3619249886, "convergenceRate": "98.57%", "unit": "小时", "startTime": "2021-11-29 20:03:15", "endTime": "2022-01-10 17:24:05", "skipDay": true, "sourceEventsStatMap": { "Grafana": [ { "evenTime": "2022-01-07 17:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-07 18:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-07 19:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-07 20:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-07 21:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-07 22:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-07 23:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 00:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 01:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 02:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 03:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 04:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 05:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 06:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 07:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 08:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 09:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 10:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 11:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 12:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 13:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 14:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 15:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 16:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 17:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 18:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 19:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 20:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 21:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 22:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-08 23:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 00:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 01:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 02:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 03:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 04:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 05:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 06:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 07:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 08:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 09:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 10:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 11:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 12:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 13:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 14:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 15:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 16:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 17:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 18:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 19:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 20:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 21:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 22:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-09 23:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 00:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 01:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 02:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 03:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 04:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 05:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 06:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 07:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 08:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 09:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 10:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 11:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 12:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 13:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 14:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 15:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 16:00:00", "eventCount": 0, "monitorSourceName": "Grafana" }, { "evenTime": "2022-01-10 17:00:00", "eventCount": 0, "monitorSourceName": "Grafana" } ] } } }
示例
正常返回示例
JSON
格式
{
"requestId": "xxxxx",
"data": [
{
"maxSustainTime": 10920312312312,
"convergenceRate": "90.90%",
"sourceEventsStatMap": {
"Grafana": [
{
"evenTime": "2021-11-15 14:29:59",
"eventCount": 4,
"monitorSourceName": "Grafana",
"monitorSourceCounts": null,
"sustainTime": 15646
},
{
"evenTime": "2021-11-15 14:30:36",
"eventCount": 7,
"monitorSourceName": "Grafana",
"monitorSourceCounts": null,
"sustainTime": 52638
}
]
},
"skipDay": true,
"unit": "1000"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|