ListDataQualityEvaluationTasks
Queries the data quality monitoring task list by page.
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
Test
RAM authorization
|
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 |
| DatabaseType |
string |
The database type of the table for table-type datasets. Valid values:
|
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 |
| 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 |
| 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.
|
|
|
| NotificationReceivers |
array<object> |
The alert recipient configuration. |
|
|
object |
The alert recipient. |
||
| ReceiverType |
string |
The type of the alert recipient.
|
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.