UpdateDataQualityAlertRule

Updated at:

Updates the specified data quality monitoring alert rule.

Operation description

DataWorks Basic Edition or higher is required.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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 PageInfo.DataQualityAlertRules[].Id parameter returned by the ListDataQualityAlertRules operation.

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 DataQualityAlertRule.Target.Ids parameter returned by the GetDataQualityAlertRule operation.

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:

  • Dingding

  • Weixin

  • Mail

  • Sms

  • Phone

  • Webhook

  • Feishu

Valid values:

  • Dingding :

    DingTalk.

  • Mail :

    Email.

  • Weixin :

    WeCom.

  • Feishu :

    Feishu.

  • Phone :

    Phone call.

  • Sms :

    SMS.

  • Webhook :

    Webhook

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 ReceiverType is DingdingUrl, you can set {"atAll":true} to mention everyone.

{"atAll":true}

ReceiverType

string

Yes

The type of the alert recipient. Valid values:

  • AliUid

  • WebhookUrl

  • DingdingUrl

  • WeixinUrl

  • FeishuUrl

  • TaskOwner

  • DataQualityScanOwner

  • ShiftSchedule

Valid values:

  • ShiftSchedule :

    Shift schedule.

  • WebhookUrl :

    Webhook URL.

  • FeishuUrl :

    Feishu webhook URL.

  • TaskOwner :

    Task owner.

  • DingdingUrl :

    DingTalk webhook URL.

  • WeixinUrl :

    WeCom webhook URL.

  • DataQualityScanOwner :

    Data quality scan owner.

  • AliUid :

    Alibaba Cloud account UID.

TaskOwner

ReceiverValues

array

No

The value of the alert recipient.

string

No

The value of the alert recipient.

  • If ReceiverType is set to AliUid, specify the Alibaba Cloud account UID.

  • If ReceiverType is set to ShiftSchedule, specify the shift schedule ID.

  • If ReceiverType is set to WebhookUrl, DingdingUrl, FeishuUrl, or WeixinUrl, specify the corresponding URL.

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.