Edit Alarm Rule

Last updated: 2017-07-25 11:23:19

1. API Description

This API (ModifyAlarmRule) is used to modify alarm rule. You can modify the comparison type, alarm threshold, number of consecutive periods, alarm receiving group ID of the rule.

Domain name: monitor.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters are also needed when the API is called. For more information, please see Common Request Parameters page. The Action field for this API is ModifyAlarmRule.

Parameter Name Required Type Description
alarmRuleId Yes String Alarm rule ID, which can be queried by calling the API Query Alarm Rule (DescribeAlarmRuleList)
operatorType No String Comparison type (operator), available values are >, < 、>=, <=, !=, ==. This indicates the comparison method of the alarm rule
threshold No Int Alarm threshold
constancy No Int Number of consecutive periods. Currently, default period is 300 seconds
receiversId No Int Alarm receiving group ID

3. Output Parameters

Parameter Name Type Description
code Int Error code, 0: Successful. Other values: Failed. For more information, please see Common Error Codes on the Error Codes page
message String Error message

4. Example

Input


https://monitor.api.qcloud.com/v2/index.php?Action=ModifyAlarmRule
&<Common request parameters>
&alarmRuleId=policy-eqzqq79naz
&receiversId=8888


Output

{
    "code":"0",
    "message":""
}