Edit Alarm Rule

Last updated: 2020-06-05 21:51:11


    This is a legacy API which has been hidden and will no longer be updated.

    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. 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


    &<Common request parameters>



    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback