DataQualityEvaluationTaskInstance

Updated at:

Parameter

Type

Description

Example

object

The quality monitoring task instance.

Id

integer

The task instance ID.

10001

CreateTime

integer

The creation time of the task instance.

1710239005403

FinishTime

integer

The end time of the task instance.

1710239005403

Status

string

The current running status.

Passed

Task

object

The snapshot of the data quality check task at the start of the check.

Id

integer

The ID of the data quality check task.

10001

Name

string

The name of the data quality check task. The name can contain digits, letters, Chinese characters, and half-width or full-width punctuation marks, and can be up to 255 characters in length.

Quality check task

TenantId

integer

The ID of the DataWorks tenant.

195820716552192

ProjectId

integer

The ID of the DataWorks workspace.

2626

Target

object

The monitored object of the data quality check task.

Type

string

The monitored object type.

  • Table

Table

DatabaseType

string

The database type to which the table belongs, applicable when the dataset is of the table type. Valid values:

  • maxcompute

  • emr

  • cdh

  • hologres

  • analyticdb_for_postgresql

  • analyticdb_for_mysql

  • starrocks

maxcompute

TableGuid

string

The unique ID of the table in DataWorks Data Map.

odps.unit_test.tb_unit_test

PartitionSpec

string

The partition settings of the partitioned table.

ds=$[yyyymmdd-1]

Trigger

object

The trigger configuration of the data quality check task.

Type

string

The type of event that triggers the execution of the quality check task. Valid values:

  • ByScheduledTaskInstance: A scheduled instance completes successfully.

ByScheduledTaskInstance

TaskIds

array

The IDs of the scheduled nodes whose successful instance execution triggers the check. This parameter takes effect only when Type is set to ByScheduledTaskInstance.

integer

The ID of the scheduled node.

10001

DataSourceId

integer

The ID of the data source used to execute the data quality check task.

201

RuntimeConf

string

The settings used when the data source is accessed. Currently, you can only specify the YARN queue for EMR and set the SQL engine to SPARK_SQL, KYUUBI, PRESTO_SQL, or HIVE_SQL when collecting EMR tables.

{ "queue": "default", "sqlEngine": "SPARK_SQL" }

Hooks

array

The callback settings for the lifecycle of the data quality check task instance. Currently, only one hook that blocks the scheduled task is supported.

object

The callback settings.

Type

string

The type of the subsequent action. Valid values:

  • BlockTaskInstance: Blocks the execution of the DataWorks task instance.

BlockTaskInstance

Condition

string

The trigger condition of the hook.

${severity} == "High" AND ${status} == "Critical"

Notifications

array

The alert subscription configuration of the data quality check task.

object

The alert settings.

Condition

string

The alert trigger condition.

${blockType} == "Strong"

Notifications

array

The specific message notification settings.

object

NotificationChannels

array

The notification channel.

object

{"Channels": ["Mail"]}

Channels

array

The notification channel.

["Mail"]

string

  • Mail - Email

  • Sms - SMS

  • Phone - Phone call

  • Feishu - Lark

  • Weixin - WeChat

  • Dingding - DingTalk

  • Webhook - Custom webhook

Mail

NotificationReceivers

array

The notification recipient configuration.

object

ReceiverType

string

The notification recipient type.

AliUid

ReceiverValues

array

The notification recipient values.

string

The specific value of the notification recipient.

user1

Extension

string

The extension information in JSON format. For example, DingTalk chatbots support mentioning all users.

{"atAll":"true"}