UpdateDIAlarmRule
Updates alert rules for tasks in the new version of Data Integration. Supported tasks include real-time synchronization of an entire MySQL database to Hologres.
Operation description
You can configure alert rules when the synchronization type of your task includes real-time synchronization. Alert rules are updated by replacing all fields. Partial updates are not supported.
DataWorks Basic Edition and higher editions are supported.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DIAlarmRuleId |
integer |
Yes |
The ID of the alert rule. You can obtain the ID from the DIAlarmRulePaging.DIJobAlarmRules[].DIAlarmRuleId parameter in the response of the ListDIAlarmRules operation. |
34982 |
| Description |
string |
No |
The description. |
mysql synchronizes to hologres heartbeat alert |
| MetricType |
string |
Yes |
The type of the alert metric. Valid values:
|
Heartbeat |
| TriggerConditions |
array<object> |
Yes |
The list of alert trigger conditions. Multiple conditions are supported. |
|
|
object |
No |
The alert trigger condition. |
||
| Severity |
string |
No |
The severity level. Valid values:
|
Warning |
| Duration |
integer |
No |
The time interval for alert calculation, in minutes. |
15 |
| Threshold |
integer |
No |
The alert threshold.
|
5 |
| NotificationSettings |
object |
Yes |
The alert notification settings. |
|
| NotificationChannels |
array<object> |
Yes |
The alert notification channels. Multiple values are supported. |
|
|
object |
No |
The alert notification channel. |
||
| Severity |
string |
No |
The severity level. Valid values:
|
Warning |
| Channels |
array |
No |
The list of channels. |
|
|
string |
No |
The channel. Valid values:
|
Ding |
|
| NotificationReceivers |
array<object> |
Yes |
The alert notification recipients. Multiple values are supported. |
|
|
object |
No |
The alert notification recipient. |
||
| ReceiverType |
string |
No |
The type of the recipient.
|
DingToken |
| ReceiverValues |
array |
No |
The list of recipient values. |
|
|
string |
No |
The recipient value.
|
token1 |
|
| InhibitionInterval |
integer |
No |
The alert inhibition interval, in minutes. Default value: 5. |
5 |
| Enabled |
boolean |
No |
Specifies whether the alert rule is enabled. Default value: false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
A6C6B486-E3A2-5D52-9E76-D9380485D946 |
Examples
Success response
JSON format
{
"RequestId": "A6C6B486-E3A2-5D52-9E76-D9380485D946"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.