All Products
Search
Document Center

Quota Center:What is the request content of an alert callback?

最終更新日:Jun 13, 2023

If you enter a URL in the Alert Callback field when you create a quota alert, Quota Center sends an alert request to the URL when the alert is triggered.

The following examples provide the further details of alert callback requests:

  • If the Threshold Type parameter is set to Numeric Value, you can receive the following request:

    {"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"}
  • If the Threshold Type parameter is set to Percentage, you can receive the following request:

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

The following table describes the parameters in an alert callback request.

Parameter

Description

AlarmId

The ID of the alert.

QuotaActionCode

The ID of the quota.

Usage

The used quota.

IdempotentId

The ID of the idempotent.

Quota

The quota value.

AlarmTime

The time when the alert is triggered.

ProductCode

The abbreviation of the cloud service name. For more information, see Alibaba Cloud services that support Quota Center.

QuotaDimension

The quota dimension, for example, {\"regionId\":\"cn-hangzhou\"}.

Threshold

The numeric value of the alert threshold.

Note

This parameter is returned only when the Threshold Type parameter is set to Numeric Value.

ThresholdPercent

The percentage of the alert threshold. Valid values: 50 to 100.

Note

This parameter is returned only when the Threshold Type parameter is set to Percentage.