UpdateDIAlarmRule
Modify alert rules for data integration sync tasks in DataWorks MCP Server. Define conditions, metrics, and notifications for task status, delays, DDL changes, or resource usage.
Instructions
更新数据集成同步任务告警规则 *This Tool has a 'MCP Resource',please request UpdateDIAlarmRule(MCP Resource) to get more examples for using this tool.
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| DIAlarmRuleId | No | 该字段已废弃,请使用Id字段 | |
| DIJobId | No | 任务ID | |
| Description | No | 告警规则描述 | |
| Enabled | No | 告警规则是否启用,默认不开启 | |
| Id | No | 告警规则ID | |
| MetricType | No | 告警指标类型,可选的枚举值:- Heartbeat(任务状态报警)- FailoverCount(failover次数报警)- Delay(任务延迟报警)- DdlReport: DDL通知- ResourceUtilization: 资源组使用率 | |
| Name | No | 告警规则的名称 | |
| NotificationSettings | No | 告警通知设置 | |
| TriggerConditions | No | 告警触发条件列表,支持多条件 | 
Input Schema (JSON Schema)
{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "DIAlarmRuleId": { "description": "该字段已废弃,请使用Id字段" }, "DIJobId": { "description": "任务ID" }, "Description": { "description": "告警规则描述", "type": "string" }, "Enabled": { "description": "告警规则是否启用,默认不开启", "type": "boolean" }, "Id": { "description": "告警规则ID" }, "MetricType": { "description": "告警指标类型,可选的枚举值:- Heartbeat(任务状态报警)- FailoverCount(failover次数报警)- Delay(任务延迟报警)- DdlReport: DDL通知- ResourceUtilization: 资源组使用率", "type": "string" }, "Name": { "description": "告警规则的名称", "type": "string" }, "NotificationSettings": { "additionalProperties": false, "description": "告警通知设置", "properties": { "InhibitionInterval": { "description": "该字段已废弃,请使用MuteInterval进行配置" }, "MuteInterval": { "description": "告警抑制间隔时长,单位分钟,默认5分钟" }, "NotificationChannels": { "description": "告警通知渠道", "items": { "additionalProperties": false, "properties": { "Channels": { "description": "通道,可选的枚举值:- Mail(邮件)- Phone(电话)- Sms(短信)- Ding(钉钉)", "items": { "type": "string" }, "type": "array" }, "Severity": { "description": "严重程度,可选的枚举值:- Warning- Critical", "type": "string" } }, "type": "object" }, "type": "array" }, "NotificationReceivers": { "description": "告警通知接收方", "items": { "additionalProperties": false, "properties": { "ReceiverType": { "description": "接收方类型,取值范围:AliyunUid/DingToken/FeishuToken/WebHookUrl", "type": "string" }, "ReceiverValues": { "description": "接收方取值。-当接收方类型为阿里云ID时,接收方取值为具体阿里云用户ID。-当接收方类型为钉钉token时,接收方取值为具体钉钉token值", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "type": "array" } }, "type": "object" }, "TriggerConditions": { "description": "告警触发条件列表,支持多条件", "items": { "additionalProperties": false, "properties": { "DdlReportTags": { "description": "该字段已废弃,请使用DdlTypes字段", "items": { "type": "string" }, "type": "array" }, "DdlTypes": { "description": "在DDL通知的时候才生效,需要生效的DDL列表", "items": { "type": "string" }, "type": "array" }, "Duration": { "description": "告警计算时间区间,单位分钟" }, "Severity": { "description": "严重程度,可选的枚举值;-Warning-Critical", "type": "string" }, "Threshold": { "description": "告警阈值。- 任务状态报警:无需填写阈值。- failover次数报警:阈值为failover次数。- 任务延迟报警:阈值为延迟时长,单位秒" } }, "type": "object" }, "type": "array" } }, "type": "object" }