All Products
Search
Document Center

CloudMonitor:EnableMetricRules

Last Updated:Mar 01, 2024

Enables one or more alert rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleIdarrayYes

The IDs of the alert rules.

Valid values of N: 1 to 100.

For information about how to obtain the ID of an alert rule, see DescribeMetricRuleList .

stringYes

The ID of the alert rule.

Valid values of N: 1 to 100.

For information about how to obtain the ID of an alert rule, see DescribeMetricRuleList .

GroupProcess_67800278_2FE7D515-4BBD-447B-BC1A-3F17ED49****

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the request was successful.
200
Messagestring

The returned message.

success
RequestIdstring

The request ID.

FF38D33A-67C1-40EB-AB65-FAEE51EDB644
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "success",
  "RequestId": "FF38D33A-67C1-40EB-AB65-FAEE51EDB644",
  "Success": true
}

Error codes

HTTP status codeError codeError message
400%s%s
402LimitExceededThe quota for this customer had been reached.
429Throttli∂ngExceptionThe request was denied due to request throttling.
500InternalErrorThe request processing has failed due to some unknown error.

For a list of error codes, visit the Service error codes.