ListDataQualityEvaluationTaskInstances
Performs a paginated query of the quality monitoring task instance list.
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
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 |
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.
|
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 |
| DatabaseType |
string |
For a dataset of table type, the database type to which the table belongs.
|
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 |
| 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 |
| 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 |
| 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 |
|
|
|
| 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.