Updates an alert rule for a new-version synchronization task. The following type of task is supported: real-time synchronization of all data in a MySQL database to Hologres.
Operation description
You can configure alert rules only for tasks that can be used for real-time data synchronization. You must update all fields in the alert rule.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DIAlarmRuleId | long | Yes | The alert rule ID. | 34982 |
Description | string | No | The description of the alert rule. | |
MetricType | string | Yes | The metric type in the alert rule. Valid values:
| Heartbeat |
TriggerConditions | array<object> | Yes | The conditions that can trigger the alert rule. | |
object | Yes | |||
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 |
NotificationSettings | object | Yes | The alert notification settings. | |
NotificationChannels | array<object> | Yes | The alert notification methods. | |
object | No | |||
Severity | string | No | The severity level. Valid values:
| Warning |
Channels | array | No | The alert notification methods. | |
string | No | The alert notification method. Valid values:
| Ding | |
NotificationReceivers | array<object> | Yes | The alert notification recipients. | |
object | No | |||
ReceiverType | string | No | The recipient type.
| DingToken |
ReceiverValues | array | No | The recipients. | |
string | No | The recipient.
| token1 | |
InhibitionInterval | integer | No | The duration of the alert suppression interval. Default value: 5. Unit: minutes. | 5 |
Enabled | boolean | No | Specifies whether to enable the alert rule. By default, the alert rule is disabled. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A6C6B486-E3A2-5D52-9E76-D9380485D946"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | - |
429 | Throttling.System | The DataWorks system is busy. Try again later. | - |
429 | Throttling.User | Your request is too frequent. Try again later. | - |
500 | InternalError.System | An internal system error occurred. Try again later. | - |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|