ces__CreateAlarmTemplate
Creates a custom Huawei Cloud CES alarm template with metric or event policies for a project, optionally overwriting an existing template with the same name.
Instructions
[CES] 创建自定义告警模板
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": {
"policies": "<policies>",
"project_id": "<project_id>",
"template_name": "<template_name>"
},
"name": "ces__CreateAlarmTemplate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policies | Yes | 告警模板策略列表 | |
| project_id | Yes | 租户ID | |
| is_overwrite | No | 是否对模板名称已经存在的告警模板进行覆盖。true:覆盖同名告警模板;false:不覆盖,新建告警模板。 | |
| template_name | Yes | 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128] | |
| template_type | No | 自定义告警模板类型 0:指标 2: 事件 | |
| template_description | No | 告警模板的描述,长度范围[0,256],该字段默认值为空字符串 |