You can call this operation to query the resources with active alerts triggered based on an alert rule.


You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description 
Action String Yes DescribeAlertingMetricRuleResources

The operation that you want to perform. Set the value to DescribeAlertingMetricRuleResources.

GroupId String Yes 123456

The ID of application group.

RuleId String Yes alarm-uuid1234abc****

The ID of the alert rule. You must specify either the GroupId or the RuleId parameter. If both parameters are specified, records that meet both conditions are returned.

Response parameters

Parameter Type Example Description 
Code Integer 200

The status code. A value of 200 indicates that the call is successful.

Message String success

The error message.

RequestId String 9B868619-77B4-4623-AD64-6181EA7CF8FA

The request ID for troubleshooting.


The list of resources to which the alert rule applies.

  └Enable String true

The status of the alert rule.

  └GroupId String 123456

The ID of the application group with which the alert rule is associated.

  └LastAlertTime String 1554718182000

The time when the alert was last triggered.

  └LastModifyTime String 1554723762000

The time when the rule was last modified.

  └MetricValues String {"timestamp":1554723720000,"Value":631}

The metric value when an alert is triggered. It is a JSON string with the value varies with metric.

  └Resource String userId=177541323192****,taskId=3****,instanceId=i-bp1a0v6yzqrms01k****

The resource to be associated with the alert rule.

  └RetryTimes String 3

The number of retries.

  └RuleId String alerRule1****

The ID of the alert rule.

  └RuleName String cpuAlert

The name of the alert rule.

  └StartTime String 1545901080000

The time when the resource is associated with the alert rule.

  └Threshold String 90

The alert threshold.

Success Boolean true

Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.

Total Integer 2

The total number of returned records.


Sample requests

http(s)://[Endpoint]/? Action=DescribeAlertingMetricRuleResources
&<Common request parameters>

Successful response examples

XML format


JSON format


Error code

View error codes