Retrieves a list of alert rules configured for a synchronization task.
Operation description
Alert rules can be configured when your task includes real-time synchronization.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DIJobId |
integer |
Yes |
The ID of the task with which the alert rules are associated. |
11260 |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
74C2FECD-5B3A-554A-BCF5-35**** |
| DIAlarmRulePaging |
object |
The pagination information. |
|
| TotalCount |
integer |
The total number of entries returned. |
2 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| DIJobAlarmRules |
array<object> |
The alert rules. |
|
|
array<object> |
The details of the alert rule. |
||
| DIAlarmRuleId |
integer |
The alert rule ID. |
41998 |
| DIJobId |
integer |
The ID of the task with which the alert rule is associated. |
11260 |
| Description |
string |
The description of the alert rule. |
mysql synchronizes to hologres heartbeat alert |
| MetricType |
string |
The metric type in the alert rule. Valid values:
|
Heartbeat |
| Enabled |
boolean |
Indicates whether the alert rule is enabled. |
true |
| TriggerConditions |
array<object> |
The conditions that are used to trigger the alert rule. |
|
|
object |
The condition that is used to trigger the alert rule. |
||
| Severity |
string |
The severity level. Valid values:
|
Warning |
| Duration |
integer |
The time interval for alert calculation. Unit: minutes. |
15 |
| Threshold |
integer |
The alert threshold.
|
5 |
| NotificationSettings |
object |
The alert notification settings. |
|
| NotificationChannels |
array<object> |
The alert notification methods. |
|
|
object |
The alert notification method. |
||
| Severity |
string |
The severity level. Valid values:
|
Warning |
| Channels |
array |
The alert notification methods. |
|
|
string |
The alert notification method. Valid values:
|
Ding |
|
| NotificationReceivers |
array<object> |
The settings of alert notification recipients. |
|
|
object |
The setting of an alert notification recipient. |
||
| ReceiverType |
string |
The recipient type. Valid values: AliyunUid and DingToken.
|
DingToken |
| ReceiverValues |
array |
The recipients. |
|
|
string |
The recipient.
|
token1 |
|
| InhibitionInterval |
integer |
The duration of the alert suppression interval. Unit: minutes. |
5 |
Examples
Success response
JSON format
{
"RequestId": "74C2FECD-5B3A-554A-BCF5-35****",
"DIAlarmRulePaging": {
"TotalCount": 2,
"PageNumber": 1,
"PageSize": 10,
"DIJobAlarmRules": [
{
"DIAlarmRuleId": 41998,
"DIJobId": 11260,
"Description": "mysql synchronizes to hologres heartbeat alert",
"MetricType": "Heartbeat",
"Enabled": true,
"TriggerConditions": [
{
"Severity": "Warning",
"Duration": 15,
"Threshold": 5
}
],
"NotificationSettings": {
"NotificationChannels": [
{
"Severity": "Warning",
"Channels": [
"Ding"
]
}
],
"NotificationReceivers": [
{
"ReceiverType": "DingToken",
"ReceiverValues": [
"token1"
]
}
],
"InhibitionInterval": 5
}
}
]
}
}
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. | 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.