Updates an alert rule configured for a synchronization task.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DIAlarmRuleId | long | Yes | The ID of the alert rule. | 34982 |
Description | string | No | The description of the alert rule. | |
MetricType | string | No | The metric type in the alert rule. Valid values:
| Heartbeat |
Enabled | boolean | No | Specifies whether to enable the alert rule. By default, the alert rule is disabled. | true |
TriggerConditions | array<object> | No | The conditions that can trigger the alert rule. | |
object | No | The condition that can trigger the alert rule. | ||
Severity | string | No | The severity level. Valid values:
| Warning |
Duration | long | No | The time interval for alert calculation. Unit: minutes. | 15 |
Threshold | long | No | The alert threshold.
| 5 |
DdlReportTags | array | No | The types of DDL operations for which the alert rule takes effect. | |
string | No | The type of the DDL operation for which the alert rule takes effect. This parameter is required only if the MetricType parameter is set to DdlReport. Valid values:
| ALTERADDCOLUMN | |
NotificationSettings | object | No | The alert notification settings. | |
NotificationChannels | array<object> | No | The alert notification methods. | |
object | No | The alert notification method. | ||
Severity | string | No | The severity level. Valid values:
| Warning |
Channels | array | No | The alert notification method. Valid values:
| |
string | No | The alert notification method. Valid values:
| Ding | |
NotificationReceivers | array<object> | No | The settings of alert notification recipients. | |
object | No | The settings of alert notification recipients. | ||
ReceiverType | string | No | The recipient type. Valid values: AliyunUid, DingToken, FeishuToken, and WebHookUrl. | DingToken |
ReceiverValues | array | No | The recipient.
| |
string | No | The recipient.
| token1 | |
InhibitionInterval | long | No | The duration of the alert suppression interval. Default value: 5. Unit: minutes. | 5 |
Name | string | No | The name of the alert rule. | alarm_rule_name |
DIJobId | long | No | The ID of the synchronization task. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A6C6B486-E3A2-5D52-9E76-D9380485D946",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|