ces__BatchUpdateNotificationMasks
Batch update CES alarm notification masks to suppress alerts during planned maintenance or defined time windows using start/end, permanent, or recurring cycle rules.
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": {
"mask_type": "<mask_type>",
"project_id": "<project_id>",
"relation_ids": "<relation_ids>",
"relation_type": "<relation_type>"
},
"name": "ces__BatchUpdateNotificationMasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | 屏蔽截止日期,yyyy-MM-dd。 | |
| end_time | No | 屏蔽截止时间,HH:mm:ss。 | |
| mask_name | No | 屏蔽规则名称 | |
| mask_type | Yes | 屏蔽类型。START_END_TIME:按起止时间屏蔽,FOREVER_TIME:永久时间屏蔽,CYCLE_TIME:按周期时间屏蔽。 | |
| resources | No | 关联资源,relation_type为RESOURCE、RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的资源信息; | |
| project_id | Yes | 租户ID | |
| start_date | No | 屏蔽起始日期,yyyy-MM-dd。 | |
| start_time | No | 屏蔽起始时间,HH:mm:ss。 | |
| metric_names | No | 关联指标名称,relation_type为RESOURCE可选填,不填视为对资源所有指标进行告警屏蔽 | |
| product_name | No | 资源为云产品时的云产品名称 | |
| relation_ids | Yes | 关联编号,relation_type为ALARM_RULE时填屏蔽的告警规则ID;relation_type为RESOURCE_POLICY_NOTIFICATION、RESOURCE_POLICY_ALARM时填屏蔽的告警策略ID; | |
| relation_type | Yes | 关联类型 | |
| resource_level | No | dimension: 子维度,product: 云产品 | |
| product_metrics | No | 按云产品维度屏蔽时的指标信息 |