Queries the list of data quality scan tasks in a project.
Operation description
DataWorks Basic Edition or a higher edition is required.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListDataQualityScans |
list |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The data quality scan task name for fuzzy match. |
test |
| SortBy |
string |
No |
The list of sorting fields. Supports fields such as last modified time and creation time. Format: "SortField+SortOrder (Desc/Asc)", where Asc is the default. Valid values:
|
ModifyTime Desc |
| PageSize |
integer |
Yes |
The number of entries per page. Default value: 10. |
10 |
| PageNumber |
integer |
Yes |
The page number. Default value: 1. |
1 |
| ProjectId |
integer |
Yes |
The project ID. |
10000 |
| Table |
string |
No |
Fuzzy match for the monitored table name. |
video_album |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The API request ID, which is generated as a UUID. |
0bc14115***159376359 |
| PageInfo |
object |
The page information. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of records per page. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of records returned. |
1 |
| DataQualityScans |
array<object> |
The list of data quality monitors. |
|
|
array<object> |
Information about the data quality monitor. |
||
| ModifyTime |
integer |
Last update time of the data quality monitor. |
17236236472 |
| Owner |
string |
The user ID of the owner responsible for the data quality monitor. |
23782382795249 |
| Description |
string |
The description of the data quality scan task. Maximum length: 65,535 characters. |
This is a hourly run data quality evaluation plan. |
| ModifyUser |
string |
The user ID of the last person who updated the data quality monitor. |
23782382795249 |
| Parameters |
array<object> |
Execution parameter definitions for the data quality monitor. |
|
|
object |
Execution parameter definitions for the data quality monitor. |
||
| Value |
string |
The parameter value. |
$[yyyy-mm-dd-1] |
| Name |
string |
The parameter name. |
dt |
| CreateTime |
integer |
The creation time of the data quality monitor. |
1694512304000 |
| ProjectId |
integer |
The project ID. |
59094 |
| CreateUser |
string |
The creator of the data quality monitor. |
7892346529452 |
| ComputeResource |
object |
The compute engine used during execution. If it is not specified, the data source connection defined in the Spec will be used. |
|
| Runtime |
object |
Additional runtime settings for the data quality monitor. |
|
| HiveConf |
string |
Additional parameters for the Hive engine. Currently, only mapreduce.job.queuename is supported to set the queue. |
mapreduce.job.queuename=dq_queue |
| SparkConf |
string |
Additional parameters for the Spark engine. Currently, only spark.yarn.queue is supported to set the queue. |
spark.yarn.queue=dq_queue |
| Engine |
string |
The engine type. These settings are only supported for the EMR compute engine. Valid values:
|
Hive |
| EnvType |
string |
Workspace environment of the compute engine. Valid values:
|
Prod |
| Name |
string |
The name of the computing engine. Uniquely identifies the engine. |
emr_cluster_001 |
| Name |
string |
The name of the data quality scan task. Can include digits, letters, Chinese characters, and both half-width and full-width punctuation marks. Maximum length: 255 characters. |
Hourly partition quality monitoring |
| RuntimeResource |
object |
The resource group used during the execution of the data quality monitor. |
|
| Cu |
number |
CU consumption for task running. |
0.25 |
| Id |
string |
The ID of the resource group. |
Serverless_resource_group_xxxxx |
| Image |
string |
The ID of the image configured for task running. |
i-xxxxx |
| Trigger |
object |
Trigger settings for the data quality monitor. |
|
| Type |
string |
The trigger mode of the data quality monitor. Valid values:
|
BySchedule |
| TaskIds |
array |
If the trigger mode is BySchedule, the ID of the scheduling task that triggers the monitor must be configured. |
|
|
integer |
The scheduling task ID. |
1023777390 |
|
| Hooks |
array<object> |
The hook configuration after the data quality monitor stops. |
|
|
object |
The hook configuration after the data quality monitor stops. |
||
| Condition |
string |
The hook trigger condition. When this condition is met, the hook is triggered. Valid expression format: Specifies multiple combinations of rule severity levels and rule validation statuses, such as |
results.any { r -> r.status == 'Fail' && r.rule.severity == 'Normal' || r.status == 'Error' && r.rule.severity == 'High' || r.status == 'Warn' && r.rule.severity == 'High' } |
| Type |
string |
The type of the hook. Valid values:
|
BlockTaskInstance |
| Id |
integer |
The ID of the data quality monitor. |
26433 |
Examples
Success response
JSON format
{
"RequestId": "0bc14115***159376359",
"PageInfo": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"DataQualityScans": [
{
"ModifyTime": 17236236472,
"Owner": "23782382795249",
"Description": "This is a hourly run data quality evaluation plan.",
"ModifyUser": "23782382795249",
"Parameters": [
{
"Value": "$[yyyy-mm-dd-1]",
"Name": "dt"
}
],
"CreateTime": 1694512304000,
"ProjectId": 59094,
"CreateUser": "7892346529452",
"ComputeResource": {
"Runtime": {
"HiveConf": "mapreduce.job.queuename=dq_queue",
"SparkConf": "spark.yarn.queue=dq_queue",
"Engine": "Hive"
},
"EnvType": "Prod",
"Name": "emr_cluster_001"
},
"Name": "Hourly partition quality monitoring",
"RuntimeResource": {
"Cu": 0.25,
"Id": "Serverless_resource_group_xxxxx",
"Image": "i-xxxxx"
},
"Trigger": {
"Type": "BySchedule",
"TaskIds": [
1023777390
]
},
"Hooks": [
{
"Condition": "results.any { r -> r.status == 'Fail' && r.rule.severity == 'Normal' || r.status == 'Error' && r.rule.severity == 'High' || r.status == 'Warn' && r.rule.severity == 'High' }",
"Type": "BlockTaskInstance"
}
],
"Id": 26433
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.