Description

Enable alarm rule. When an alarm rule is disabled, you can use this API to enable it.

Request Parameters

Name Type Required Description
Action String Yes The parameter specified by the system. Value: EnableAlarm
Id String Required ID of the alarm rule

Response parameter

Name Type Description
Data String Returned alarm rule ID
Success Boolean Whether the request is successful
RequestId String Requested UUID, easy to query log
Code String Request failure status code. The value 200 indicates that the request is successful, and a non-200 value indicates that the request fails

Example

Request example
http://metrics.cn-hangzhou.aliyuncs.com/?Action= EnableAlarm
&Id=576fbae7-2fd1-411a-ae13-6f09f4fafdde
&<Common Request Parameters>

Response example

  • XML format
    <EnableAlarmResponse>
      <RequestId>1B77FA9C-4E5A-4DF9-82CB-0E898C9FDA2F</RequestId>
      <Success>true</Success>
      <Code>200</Code>
    </EnableAlarmResponse>
  • JSON format
    {
        "RequestId": "1C5E0E5D-76D5-469C-9FA8-D74799B24860", 
        "Success": true, 
        "Code": "200"
    }