文档

告警回调的请求内容是什么?

更新时间:

如果您创建配额告警时设置了告警回调的URL地址,当告警被触发时,配额中心会发送告警请求到您指定的URL地址。

告警回调的请求示例如下:

  • 配额告警阈值类型设置为数值时:

    {"AlarmId":"13e48781-5846-48fc-ba2d-db4564a8****","QuotaActionCode":"q_security-groups","Usage":"82.00","IdempotentId":"13e48781-5846-48fc-ba2d-db4564a8****_160635570****","Quota":"900.00","ProductCode":"ecs","AlarmTime":"2020-11-26T01:55:02Z","QuotaDimension":"{\"regionId\":\"cn-hangzhou\"}","Threshold":"80.00"}
  • 配额告警阈值类型设置为百分比时:

    {"AlarmId":"13e48781-5846-48fc-ba2d-db4564a8****","QuotaActionCode":"q_security-groups","Usage":"725.00","IdempotentId":"13e48781-5846-48fc-ba2d-db4564a8****_160635570****","Quota":"900.00","ProductCode":"ecs","AlarmTime":"2020-11-26T01:55:02Z","QuotaDimension":"{\"regionId\":\"cn-hangzhou\"}","ThresholdPercent":"80"}

告警回调的请求参数说明,如下表所示。

参数

说明

AlarmId

告警ID。

QuotaActionCode

配额ID。

Usage

配额用量。

IdempotentId

幂等ID。

Quota

配额值。

AlarmTime

告警发生的时间。

ProductCode

云服务名称缩写。更多信息,请参见支持配额中心的云服务

QuotaDimension

配额维度,例如:{\"regionId\":\"cn-hangzhou\"}

Threshold

配额告警阈值的数值。

说明

配额告警阈值类型设置为数值时,返回该参数。

ThresholdPercent

配额告警阈值的百分比。取值范围:[50, 100]。

说明

配额告警阈值类型设置为百分比时,返回该参数。

  • 本页导读 (1)
文档反馈