ListDataQualityEvaluationTaskInstances

Updated at:

Performs a paginated query of the quality monitoring task instance list.

Note

This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - ListDataQualityScanRuns 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 above to use this feature.

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

Yes

The ID of the DataWorks workspace.

100

DataQualityEvaluationTaskId

integer

No

The ID of the data quality evaluation task.

10000

TableGuid

string

No

The unique ID of the table in Data Map.

odps.unit_test.tb_unit_test

CreateTimeFrom

integer

No

The earliest start time of the data quality evaluation task instance.

1710239005403

CreateTimeTo

integer

No

The latest start time of the data quality evaluation task instance.

1710239005403

BizdateFrom

string

No

The business start date of the quality evaluation task.

2024-04-01

BizdateTo

string

No

The business end date of the quality evaluation task.

2024-05-01

TriggerClientId

string

No

The TriggerClientId in TriggerContext.

1001

TriggerClient

string

No

The TriggerClient in TriggerContext.

CWF2

PageSize

integer

Yes

The page size for the list pagination query. Default value: 10.

10

PageNumber

integer

Yes

The page number for the list pagination query. Default value: 1.

1

Response elements

Element

Type

Description

Example

object

The return value.

RequestId

string

The API request ID.

691CA452-D37A-4ED****

PagingInfo

object

The pagination query result of quality evaluation task instances.

PageNumber

integer

The page number.

1

PageSize

integer

The page size.

10

TotalCount

integer

The total number of records.

294

DataQualityEvaluationTaskInstances

array<object>

The successfully triggered TaskInstance.

array<object>

Id

integer

The ID of the quality check task instance.

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.

  • Running

  • Error

  • Passed

  • Warned

  • Critical

Critical

Parameters

string

The parameter settings used during the actual runtime.

{ "bizdate": "20240517", "triggerTime": "1710239005403" }

TriggerContext

string

The context information when the instance is triggered.

{ "TriggerClientId": 10001, "TriggerClient": "CWF2" }

ProjectId

integer

The ID of the DataWorks project workspace.

100

Task

object

The snapshot of the data quality evaluation task when the evaluation starts.

Id

integer

The ID of the data quality evaluation task.

10001

Description

string

The description of the quality monitoring task.

This is a daily run data quality evaluation plan.

ProjectId

integer

The ID of the project workspace.

100

Target

object

The monitoring object of the data quality evaluation task.

Type

string

The type of the monitoring object.

  • Table

Table

DatabaseType

string

For a dataset of table type, the database type to which the table belongs.

  • 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 evaluation task.

Type

string

The type of event that can trigger the execution of the quality evaluation task.

  • ByScheduledTaskInstance: A scheduled instance runs successfully.

ByScheduledTaskInstance

TaskIds

array

The IDs of scheduled task nodes.

integer

The ID of the scheduled task node.

10000

RuntimeConf

string

Settings used when accessing data sources. Currently, only specifying the YARN queue of EMR and specifying the SQL engine as SPARK_SQL|KYUUBI|PRESTO_SQL|HIVE_SQL when collecting EMR tables are supported.

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

Hooks

array<object>

The callback settings in the lifecycle of the data quality evaluation task instance. Currently, only one Hook for blocking scheduled tasks is supported.

object

Hook.

Type

string

The type of the subsequent processing 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 notification subscription configuration.

Condition

string

The trigger condition of the notification.

${severity} == "High"

Notifications

array<object>

The notification settings.

array<object>

The notification settings.

NofiticationReceivers

array<object>

The alert recipient settings.

object

The alert recipient settings.

ReceiverType

string

The type of the alert recipient.

  • AliUid - The UID of the Alibaba Cloud account

  • WebhookUrl - A custom webhook URL

  • DingdingUrl - The URL of a DingTalk bot

  • FeishuUrl - The URL of a Lark bot

  • WeixinUrl - The URL of a WeCom bot

AliUid

Extension

string

The extension information, in JSON format. For example, a DingTalk bot supports at-all.

{"atAll":"true"}

ReceiverValues

array

The alert recipient.

string

The specific value of the alert recipient.

10000001

NotificationChannels

array<object>

The alert method.

object

The notification method.

Channels

array

The alert method.

string

  • Mail - Email

  • Sms - SMS

  • Phone - Phone call

  • Feishu - Lark

  • Weixin - WeChat

  • Dingding - DingTalk

  • Webhook - Custom Webhook

Mail

Name

string

The name of the quality monitoring task.

Quality verification task

Examples

Success response

JSON format

{
  "RequestId": "691CA452-D37A-4ED****",
  "PagingInfo": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 294,
    "DataQualityEvaluationTaskInstances": [
      {
        "Id": 10001,
        "CreateTime": 1710239005403,
        "FinishTime": 1710239005403,
        "Status": "Critical",
        "Parameters": "{\n  \"bizdate\": \"20240517\",\n  \"triggerTime\": \"1710239005403\"\n}",
        "TriggerContext": "{\n  \"TriggerClientId\": 10001,\n  \"TriggerClient\": \"CWF2\"\n}",
        "ProjectId": 100,
        "Task": {
          "Id": 10001,
          "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": [
              10000
            ]
          },
          "RuntimeConf": "{ \"queue\": \"default\", \"sqlEngine\": \"SPARK_SQL\" }",
          "Hooks": [
            {
              "Type": "BlockTaskInstance",
              "Condition": "${severity} == \"High\" AND ${status} == \"Critical\""
            }
          ],
          "Notifications": {
            "Condition": "${severity} == \"High\"",
            "Notifications": [
              {
                "NofiticationReceivers": [
                  {
                    "ReceiverType": "AliUid",
                    "Extension": "{\"atAll\":\"true\"}",
                    "ReceiverValues": [
                      "10000001"
                    ]
                  }
                ],
                "NotificationChannels": [
                  {
                    "Channels": [
                      "Mail"
                    ]
                  }
                ]
              }
            ]
          },
          "Name": "Quality verification task"
        }
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.