UpdateDataQualityAlertRule
Updates the specified data quality monitoring alert rule.
Operation description
DataWorks Basic Edition or higher is required.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The ID of the data quality monitoring alert rule. You can obtain the ID from the |
105412 |
| ProjectId |
integer |
No |
The ID of the DataWorks workspace. |
1000 |
| Condition |
string |
No |
The alert condition of the data quality monitoring alert rule. |
results.any { r -> r.status == 'fail' && r.rule.severity == 'High' } |
| Target |
object |
No |
The target of the data quality monitoring alert rule. |
|
| Type |
string |
No |
The type of the monitored object. Only DataQualityScan is supported. |
DataQualityScan |
| Ids |
array |
No |
The ID of the data quality scan currently associated with the rule. Specify only one ID. The ID must be the same as the |
|
|
integer |
No |
The ID of the monitored object. |
7638999336 |
|
| Notification |
object |
No |
The alert notification configuration. |
|
| Channels |
array |
Yes |
The notification channels. You can combine email and SMS. Otherwise, specify only one channel. |
|
|
string |
Yes |
The alert channel. Valid values:
Valid values:
|
Sms |
|
| Receivers |
array<object> |
No |
The list of alert recipients. Specify only one recipient. |
|
|
object |
No |
The alert recipient. |
||
| Extension |
string |
No |
The additional configuration for the alert recipient. When |
{"atAll":true} |
| ReceiverType |
string |
Yes |
The type of the alert recipient. Valid values:
Valid values:
|
TaskOwner |
| ReceiverValues |
array |
No |
The value of the alert recipient. |
|
|
string |
No |
The value of the alert recipient.
|
https://oapi.dingtalk.com/robot/send?access_token=a30bae7****** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0bc14115***159376359 |
| Success |
boolean |
Indicates whether the alert rule was updated successfully. |
True |
Examples
Success response
JSON format
{
"RequestId": "0bc14115***159376359",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.