ListDataQualityEvaluationTasks

Updated at:

Queries the data quality monitoring task list by page.

Note

This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - ListDataQualityScans for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.

Operation description

You must purchase DataWorks Basic Edition or a higher edition to use this API operation.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

No

The ID of the DataWorks workspace.

100

TableGuid

string

No

The unique ID of the table in Data Map.

odps.unit_test.tb_unit_test

Name

string

No

The keyword used to fuzzy match the name of the data quality check task.

Test

PageSize

integer

No

The number of entries per page. Default value: 10.

10

PageNumber

integer

No

The page number. Default value: 1.

1

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The ID of the API request.

691CA452-D37A-4ED0-****

PagingInfo

object

The paged query results of the data quality check tasks.

TotalCount

string

The total number of entries.

131

PageSize

string

The number of entries per page.

10

PageNumber

string

The page number.

1

DataQualityEvaluationTasks

array<object>

The data quality check tasks.

array<object>

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.

Data quality verification task

Description

string

The description of the data quality check task. The description can be up to 65,535 characters in length.

This is a daily run data quality evaluation plan

ProjectId

integer

The ID of the DataWorks workspace.

100

Target

object

The monitored object of the data quality check task.

Type

string

The type of the monitored object.

  • Table

Table

DatabaseType

string

The database type of the table for table-type datasets. Valid values:

  • maxcompute

  • emr

  • cdh

  • hologres

  • analyticdb_for_postgresql

  • analyticdb_for_mysql

  • starrocks

maxcompute

TableGuid

string

The unique ID of the table in 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 event that triggers the execution of the data quality check task.

  • ByScheduledTaskInstance: The scheduled instance runs successfully.

ByScheduledTaskInstance

TaskIds

array

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

integer

The ID of the scheduled node.

10001

RuntimeConf

string

The settings used when accessing the data source. 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<object>

The callback settings in 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.

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

BlockTaskInstance

Condition

string

The trigger condition of the hook.

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

Notifications

object

The alert configuration.

Condition

string

The trigger condition of the notification.

${severity} == "High"

Notifications

array<object>

The specific alert settings.

array<object>

The alert settings.

NotificationChannels

array<object>

The notification channel configuration.

object

The notification channel.

Channels

array

The notification channel.

string

The notification channel.

  • Mail: Email

  • Sms: Text message

  • Phone: Phone call

  • Feishu: Lark

  • Weixin: WeChat

  • Dingding: DingTalk

  • Webhook: Custom webhook

Mail

NotificationReceivers

array<object>

The alert recipient configuration.

object

The alert recipient.

ReceiverType

string

The type of the alert recipient.

  • AliUid: Alibaba Cloud account UID

  • WebhookUrl: Custom webhook URL

  • DingdingUrl: DingTalk chatbot webhook URL

  • FeishuUrl: Lark chatbot webhook URL

  • WeixinUrl: WeCom chatbot webhook URL

AliUid

ReceiverValues

array

The specific value of the alert recipient.

string

The specific value of the alert recipient.

user1

Extension

string

The extended information in JSON format. For example, DingTalk chatbots support mentioning all members.

{"atAll":"true"}

DataSourceId

integer

The ID of the data source used by the data quality monitoring task.

45238

Examples

Success response

JSON format

{
  "RequestId": "691CA452-D37A-4ED0-****",
  "PagingInfo": {
    "TotalCount": "131",
    "PageSize": "10",
    "PageNumber": "1",
    "DataQualityEvaluationTasks": [
      {
        "Id": 10001,
        "Name": "Data quality verification task",
        "Description": "This is a daily run data quality evaluation plan",
        "ProjectId": 100,
        "Target": {
          "Type": "Table",
          "DatabaseType": "maxcompute",
          "TableGuid": "odps.unit_test.tb_unit_test",
          "PartitionSpec": "ds=$[yyyymmdd-1]"
        },
        "Trigger": {
          "Type": "ByScheduledTaskInstance",
          "TaskIds": [
            10001
          ]
        },
        "RuntimeConf": "{ \"queue\": \"default\", \"sqlEngine\": \"SPARK_SQL\" }",
        "Hooks": [
          {
            "Type": "BlockTaskInstance",
            "Condition": "${severity} == \"High\" AND ${status} == \"Critical\""
          }
        ],
        "Notifications": {
          "Condition": "${severity} == \"High\"",
          "Notifications": [
            {
              "NotificationChannels": [
                {
                  "Channels": [
                    "Mail"
                  ]
                }
              ],
              "NotificationReceivers": [
                {
                  "ReceiverType": "AliUid",
                  "ReceiverValues": [
                    "user1"
                  ],
                  "Extension": "{\"atAll\":\"true\"}"
                }
              ]
            }
          ]
        },
        "DataSourceId": 45238
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.