Retrieves the details of a data quality alert rule by rule ID.
Operation description
DataWorks Basic Edition or a higher edition is required.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetDataQualityAlertRule |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The data quality monitoring alert rule ID. |
113642 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0bc14115****159376359 |
| DataQualityAlertRule |
object |
Data quality monitoring alert rules. |
|
| Id |
integer |
The ID of the data quality monitoring alert rule. |
21045 |
| Condition |
string |
Alert conditions of the data quality monitoring alert rule. |
results.any { r -> r.status == 'fail' && r.rule.severity == 'High' } |
| ProjectId |
integer |
The project ID. |
90912 |
| Target |
object |
The monitored target of the data quality monitoring alert rule. |
|
| Type |
string |
The type of the monitored target. Only |
DataQualityScan |
| Ids |
array |
The list of monitored target IDs. |
|
|
integer |
The monitored target ID. |
113647 |
|
| Notification |
object |
Alert notification settings. |
|
| Channels |
array |
In Channels, you can set both Email and Sms at the same time. In other cases, only one channel can be set. |
|
|
string |
Alert channels.
|
Dingding |
|
| Receivers |
array<object> |
The alert recipients. |
|
|
object |
The alert recipients. |
||
| Extension |
string |
Additional configurations required for the alert recipients. When ReceiverType is DingdingUrl, you can set |
{"atAll":true} |
| ReceiverType |
string |
The type of alert recipients.
|
TaskOwner |
| ReceiverValues |
array |
The value of alert recipients. |
|
|
string |
The value of alert recipients.
|
https://oapi.dingtalk.com/robot/send?access_token=a30bae7****** |
Examples
Success response
JSON format
{
"RequestId": "0bc14115****159376359",
"DataQualityAlertRule": {
"Id": 21045,
"Condition": "results.any { r -> r.status == 'fail' && r.rule.severity == 'High' }",
"ProjectId": 90912,
"Target": {
"Type": "DataQualityScan",
"Ids": [
113647
]
},
"Notification": {
"Channels": [
"Dingding"
],
"Receivers": [
{
"Extension": "{\"atAll\":true}",
"ReceiverType": "TaskOwner",
"ReceiverValues": [
"https://oapi.dingtalk.com/robot/send?access_token=a30bae7******"
]
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.