aom__UpdateAlarmRule
Modify an existing threshold alarm rule by updating its metric, comparison operator, threshold, evaluation periods, and notification actions to match changing monitoring needs.
Instructions
[AOM] 该接口用于修改一条阈值规则。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alarm_level": "<alarm_level>",
"alarm_rule_name": "<alarm_rule_name>",
"comparison_operator": "<comparison_operator>",
"dimensions": "<dimensions>",
"evaluation_periods": "<evaluation_periods>",
"metric_name": "<metric_name>",
"namespace": "<namespace>",
"period": "<period>",
"project_id": "<project_id>",
"statistic": "<statistic>",
"threshold": "<threshold>",
"unit": "<unit>"
},
"name": "aom__UpdateAlarmRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | 时间序列单位 | |
| period | Yes | 统计周期。60000:一分钟。300000:五分钟。900000:十五分钟。3600000:一小时。 | |
| namespace | Yes | 时间序列命名空间。 | |
| statistic | Yes | 统计方式。 | |
| threshold | Yes | 超限值。 | |
| dimensions | Yes | 时间序列维度。 | |
| is_turn_on | No | 阈值规则是否启用。 | |
| ok_actions | No | 正常状态通知列表。 | |
| project_id | Yes | 租户从IAM申请到的projectid,一般为32位字符串。 | |
| alarm_level | Yes | 告警级别。1:紧急,2:重要,3:一般,4:提示。 | |
| metric_name | Yes | 时间序列名称。名称长度取值范围为1~255个字符。 | |
| alarm_advice | No | 告警清除建议。字符长度为0-255。 | |
| alarm_actions | No | 告警状态通知列表。 | |
| action_enabled | No | 是否启用通知。 | |
| alarm_rule_name | Yes | 阈值规则名称。规则名称包含大小写字母、数字、特殊字符(-_)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。 | |
| alarm_description | No | 阈值规则描述。字符长度为0-1024。 | |
| evaluation_periods | Yes | 间隔周期。 | |
| comparison_operator | Yes | 超限条件。<:小于阈值。>:大于阈值。<=:小于等于阈值。>=:大于等于阈值。 | |
| insufficient_data_actions | No | 数据不足通知列表。 |