ListDIAlarmRules
Queries the alert rules for data integration.
Operation description
You must purchase DataWorks Basic Edition or a higher edition to use this operation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
integer |
No |
The ID of the data integration task for which you want to query alert rules. This parameter is required. You can call the ListDIJobs operation to query the target workspace and obtain the If |
1000001 |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 100. |
10 |
| DIAlarmRuleId |
integer |
No |
The ID of the specific alert rule to query. If you leave this parameter empty, all alert rules for the specified task are queried. |
34988 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
74C2FECD-5B3A-554A-BCF5-351A36DE9815 |
| PagingInfo |
object |
The pagination information. |
|
| TotalCount |
integer |
The total number of entries that meet the specified conditions. |
90 |
| PageNumber |
integer |
The page number. Pages start from 1. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| DIJobAlarmRules |
array<object> |
The list of alert rules. |
|
|
array<object> |
The details of a single alert rule. |
||
| Id |
integer |
The ID of the alert rule. |
72402 |
| DIJobId |
integer |
The ID of the task. |
32594 |
| Description |
string |
The description of the alert rule. |
rule description |
| MetricType |
string |
The type of the alert metric. Valid values:
|
Heartbeat |
| Name |
string |
The name of the alert rule. |
rule_name |
| Enabled |
boolean |
Specifies whether the alert rule is enabled. |
True |
| TriggerConditions |
array<object> |
The list of alert trigger conditions. Multiple trigger conditions are supported. |
|
|
object |
The alert trigger condition. |
||
| Severity |
string |
The severity level. Valid values:
|
Critical |
| Duration |
integer |
The time interval for alert calculation, in minutes. |
1 |
| Threshold |
integer |
The alert threshold.
|
5 |
| DdlTypes |
array |
The list of DDL operations to take effect. This parameter is returned only when MetricType is set to DdlReport. |
|
|
string |
The DDL operations to take effect when MetricType is set to DdlReport. Valid values:
|
AlterAddColumn |
|
DdlReportTags
deprecated
|
array |
[Deprecated] Use the DdlTypes field instead. |
|
deprecated
|
string |
[Deprecated] Use the DdlTypes field instead. |
ALTERADDCOLUMN |
| NotificationSettings |
object |
The alert notification channels and recipient settings. |
|
| NotificationChannels |
array<object> |
The array of alert notification channels. |
|
|
object |
A single alert notification channel. |
||
| Severity |
string |
The severity level. Valid values:
|
Critical |
| Channels |
array |
The array of alert channel settings. |
|
|
string |
The channel type. Valid values:
|
Ding |
|
| NotificationReceivers |
array<object> |
The alert notification recipients. |
|
|
object |
The alert notification recipients. |
||
| ReceiverType |
string |
The type of the recipient. Valid values: AliyunUid, DingToken, FeishuToken, and WebHookUrl. |
DingToken |
| ReceiverValues |
array |
The value of the recipient.
|
|
|
string |
The value of the recipient.
|
token1 |
|
| MuteInterval |
integer |
The alert mute interval, in minutes. |
5 |
InhibitionInterval
deprecated
|
integer |
[Deprecated] Use the MuteInterval field instead. |
5 |
DIAlarmRuleId
deprecated
|
integer |
[Deprecated] Use the Id field instead. |
72402 |
Examples
Success response
JSON format
{
"RequestId": "74C2FECD-5B3A-554A-BCF5-351A36DE9815",
"PagingInfo": {
"TotalCount": 90,
"PageNumber": 1,
"PageSize": 10,
"DIJobAlarmRules": [
{
"Id": 72402,
"DIJobId": 32594,
"Description": "rule descrition",
"MetricType": "Heartbeat",
"Name": "rule_name",
"Enabled": true,
"TriggerConditions": [
{
"Severity": "Critical",
"Duration": 1,
"Threshold": 5,
"DdlTypes": [
"AlterAddColumn"
],
"DdlReportTags": [
"ALTERADDCOLUMN"
]
}
],
"NotificationSettings": {
"NotificationChannels": [
{
"Severity": "Critical",
"Channels": [
"Ding"
]
}
],
"NotificationReceivers": [
{
"ReceiverType": "DingToken",
"ReceiverValues": [
"token1"
]
}
],
"MuteInterval": 5,
"InhibitionInterval": 5
},
"DIAlarmRuleId": 72402
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.