ces__UpdateResourceGroupAssociationAlarmTemplate
Submit an asynchronous task to batch-associate custom alarm templates with a resource group, creating or updating alarm rules and their notifications.
Instructions
[CES] 提交资源分组批量关联自定义告警模板异步任务,由异步任务覆盖性创建告警规则。每个用户创建处于待执行状态的异步任务数量上限为100个,单个资源分组仅可有1个未完成的任务。
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": {
"notification_enabled": "<notification_enabled>",
"project_id": "<project_id>",
"template_ids": "<template_ids>"
},
"name": "ces__UpdateResourceGroupAssociationAlarmTemplate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 租户ID | |
| template_ids | Yes | 告警模板编号列表,当ID列表为空时,将删除该资源分组已关联的告警模板所创建的告警规则 | |
| ok_notifications | No | 告警恢复通知列表 | |
| alarm_notifications | No | 告警触发通知列表 | |
| notification_manner | No | NOTIFICATION_GROUP(通知组)/TOPIC_SUBSCRIPTION(主题订阅)/NOTIFICATION_POLICY(通知策略) | |
| notification_enabled | Yes | 是否开启告警通知。true:开启,false:关闭。 | |
| enterprise_project_id | No | 企业项目ID | |
| notification_end_time | No | 告警通知关闭时间 | |
| notification_begin_time | No | 告警通知开启时间 | |
| notification_policy_ids | No | 关联的通知策略ID列表 |