Enables one or more alert rules.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RuleId.N | RepeatList | Yes | ab05733c97b7ce239fb1b53393dc1697c123**** |
The ID of the alert rule. |
Action | String | No | EnableMetricRules |
The operation that you want to perform. Set the value to EnableMetricRules. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 |
The HTTP status code. The status code 200 indicates that the call was successful. |
Message | String | success |
The returned message. |
RequestId | String | FF38D33A-67C1-40EB-AB65-FAEE51EDB644 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=EnableMetricRules
&RuleId.1=ab05733c97b7ce239fb1b53393dc1697c123****
&<Common request parameters>
Sample success responses
XML
format
<EnableMetricRulesResponse>
<Code>200</Code>
<Message>success</Message>
<RequestId>FF38D33A-67C1-40EB-AB65-FAEE51EDB644</RequestId>
<Success>true</Success>
</EnableMetricRulesResponse>
JSON
format
{
"Message":"success",
"RequestId":"FF38D33A-67C1-40EB-AB65-FAEE51EDB644",
"Success":true,
"Code":200
}
Error codes
For a list of error codes, visit the API Error Center.