首页 运维事件中心 开发参考 API参考 API目录 报警 ListTrendForSourceEvent - 查询告警源趋势统计数据

ListTrendForSourceEvent - 查询告警源趋势统计数据

更新时间: 2024-10-18 14:05:02

查询告警源趋势统计数据。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

POST /events/querySourceEventTrend HTTP/1.1

请求参数

名称类型必填描述示例值
bodyobject

A short description of struct

requestIdstring

请求 ID

xxxx
instanceIdlong

报警或者事件 ID

1000
instanceTypestring

类型

INCIDENT
startTimestring

开始时间

2020-10-10 00:00:00
endTimestring

结束时间

2020-10-10 23:59:59
timeUnitlong

时间单位毫秒

1000

{"instanceId":78958441,"instanceType":"ALERT","clientToken":"82af9e74-6592-435d-aa06-345562cdd37c"}

返回参数

名称类型描述示例值
object

Schema of Response

requestIdstring

Id of the request

xxxxx
dataarray<object>

统计列表

统计列表object

统计数据

maxSustainTimelong

最大持续时长

10920312312312
convergenceRatestring

收敛率

90.90%
sourceEventsStatMapobject

按监控源分组统计数据

{ "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 } ] }
skipDayboolean

是否跨天

true
unitstring

时间单位

1000

{ "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"
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
上一篇: 报警 下一篇: ListSourceEventsForMonitorSource - 查询最近告警列表
阿里云首页 运维事件中心 相关技术圈