Edit Alarm Rule

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

    Note:

    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

    Input

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

    Output

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

    Was this page helpful?

    Was this page helpful?

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