Retrieves the details of a data quality check task instance.
This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - GetDataQualityScanRun for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Operation description
DataWorks Basic Edition or a higher edition is required to use this operation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The instance ID of the data quality monitoring task. |
7227550902 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. Used to locate logs and troubleshoot issues. |
8abcb91f-d266-4073-b907-2ed67**** |
| DataQualityEvaluationTaskInstance |
object |
The details of the data quality monitoring instance. |
|
| Status |
string |
The instance status of the data quality monitoring task. Valid values:
|
Passed |
| Task |
object |
The data quality monitoring task. |
|
| Name |
string |
The name of the monitor. |
Data quality OpenAPI monitoring test |
| Notifications |
object |
The configurations of alert notifications. |
|
| Condition |
string |
The notification trigger condition. When this condition is met, the alert notification is triggered. Only two conditional expressions are supported:
|
${severity} == "High" AND ${status} == "Critical" |
| Notifications |
array<object> |
The alert notification methods. |
|
|
array<object> |
|||
| NotificationReceivers |
array<object> |
The value of the receiver. |
|
|
object |
|||
| ReceiverType |
string |
The type of alert recipient. |
DingdingUrl |
| Extension |
string |
Additional parameter settings for sending alerts in json format. The supported keys are as follows:
|
{ "atAll": true } |
| ReceiverValues |
array |
The recipient of the alert. |
|
|
string |
The value of the receiver.
|
https://api.fc.aliyuncs.com/webhook |
|
| NotificationChannels |
array<object> |
The notification method. |
|
|
object |
|||
| Channels |
array |
The notification method. |
|
|
string |
Alarm mode
|
|
|
| Hooks |
array<object> |
The hook. |
|
|
object |
|||
| Type |
string |
Hook type. Currently, only one type is supported:
|
BlockTaskInstance |
| Condition |
string |
The hook trigger condition. When this condition is met, the hook action is triggered. Only two conditional expressions are supported:
|
(${severity} == "High" AND ${status} == "Critical") OR (${severity} == "Normal" AND ${status} == "Critical") OR (${severity} == "Normal" AND ${status} == "Error") |
| RuntimeConf |
string |
Extended configuration, JSON-formatted string, takes effect only for EMR-type data quality monitoring.
|
{ "queue": "default" } |
| Trigger |
object |
The trigger configuration of the monitor. |
|
| Type |
string |
The trigger type of the monitor. Valid values:
|
ByScheduledTaskInstance |
| TaskIds |
array |
The Id list of the scheduled task, which is valid when the Type is ByScheduledTaskInstance. |
|
|
integer |
The Id of the scheduled task. |
70006236752324 |
|
| Target |
object |
The monitored object of the monitor. |
|
| Type |
string |
The type of the monitoring object.
|
Table |
| DatabaseType |
string |
The type of the database to which the table belongs. |
maxcompute |
| TableGuid |
string |
The unique ID of the table in the data map. |
odps.api_trace.ods_d_api_log |
| PartitionSpec |
string |
The partition range monitored. |
pt=$[yyyymmdd-1] |
| Description |
string |
The description of the monitor. |
OpenAPI quality monitoring test |
| Id |
integer |
The ID of the data quality monitor. |
28544990 |
| ProjectId |
integer |
The ID of the workspace. |
20629 |
| Parameters |
string |
The execution parameters for the data quality check, in JSON format. The following keys are available:
|
{ "triggerTime": 1733284062000 } |
| FinishTime |
integer |
The end time of the instance execution. |
1716344665000 |
| TriggerContext |
string |
The context information when the instance is triggered, in JSON format. The following keys may be included:
|
{ "triggerClient": "CWF2", "triggerClientId": 70001238945 } |
| CreateTime |
integer |
The creation time. |
1716344665000 |
| Id |
integer |
The data quality monitoring instance ID. |
7234231689 |
| ProjectId |
integer |
The workspace ID. |
98330 |
| Results |
array<object> |
||
|
array<object> |
|||
| Id |
integer |
||
| Status |
string |
||
| CreateTime |
integer |
||
| TaskInstanceId |
integer |
||
| Sample |
string |
||
| Details |
array<object> |
||
|
object |
|||
| ReferencedValue |
string |
||
| CheckedValue |
string |
||
| Status |
string |
||
| Rule |
object |
||
| Id |
integer |
||
| Name |
string |
||
| ProjectId |
integer |
||
| Enabled |
boolean |
||
| Severity |
string |
||
| Description |
string |
||
| TemplateCode |
string |
||
| Target |
object |
||
| Type |
string |
||
| DatabaseType |
string |
||
| TableGuid |
string |
||
| SamplingConfig |
object |
||
| Metric |
string |
||
| MetricParameters |
string |
||
| SettingConfig |
string |
||
| SamplingFilter |
string |
||
| CheckingConfig |
object |
||
| Type |
string |
||
| ReferencedSamplesFilter |
string |
||
| Thresholds |
object |
||
| Expected |
object |
||
| Value |
string |
||
| Operator |
string |
||
| Expression |
string |
||
| Warned |
object |
||
| Value |
string |
||
| Operator |
string |
||
| Expression |
string |
||
| Critical |
object |
||
| Value |
string |
||
| Operator |
string |
||
| Expression |
string |
||
| ErrorHandlers |
array<object> |
||
|
object |
|||
| Type |
string |
||
| ErrorDataFilter |
string |
Examples
Success response
JSON format
{
"RequestId": "8abcb91f-d266-4073-b907-2ed67****",
"DataQualityEvaluationTaskInstance": {
"Status": "Passed",
"Task": {
"Name": "Data quality OpenAPI monitoring test\n",
"Notifications": {
"Condition": "${severity} == \"High\" AND ${status} == \"Critical\"",
"Notifications": [
{
"NotificationReceivers": [
{
"ReceiverType": "DingdingUrl",
"Extension": "{ \"atAll\": true }",
"ReceiverValues": [
"https://api.fc.aliyuncs.com/webhook"
]
}
],
"NotificationChannels": [
{
"Channels": [
"Mail"
]
}
]
}
]
},
"Hooks": [
{
"Type": "BlockTaskInstance",
"Condition": "(${severity} == \"High\" AND ${status} == \"Critical\") OR (${severity} == \"Normal\" AND ${status} == \"Critical\") OR (${severity} == \"Normal\" AND ${status} == \"Error\")"
}
],
"RuntimeConf": "{ \"queue\": \"default\" }",
"Trigger": {
"Type": "ByScheduledTaskInstance",
"TaskIds": [
70006236752324
]
},
"Target": {
"Type": "Table",
"DatabaseType": "maxcompute",
"TableGuid": "odps.api_trace.ods_d_api_log",
"PartitionSpec": "pt=$[yyyymmdd-1]"
},
"Description": "OpenAPI quality monitoring test",
"Id": 28544990,
"ProjectId": 20629
},
"Parameters": "{ \"triggerTime\": 1733284062000 }\n",
"FinishTime": 1716344665000,
"TriggerContext": "{ \"triggerClient\": \"CWF2\", \"triggerClientId\": 70001238945 }",
"CreateTime": 1716344665000,
"Id": 7234231689,
"ProjectId": 98330,
"Results": [
{
"Id": 0,
"Status": "",
"CreateTime": 0,
"TaskInstanceId": 0,
"Sample": "",
"Details": [
{
"ReferencedValue": "",
"CheckedValue": "",
"Status": ""
}
],
"Rule": {
"Id": 0,
"Name": "",
"ProjectId": 0,
"Enabled": false,
"Severity": "",
"Description": "",
"TemplateCode": "",
"Target": {
"Type": "",
"DatabaseType": "",
"TableGuid": ""
},
"SamplingConfig": {
"Metric": "",
"MetricParameters": "",
"SettingConfig": "",
"SamplingFilter": ""
},
"CheckingConfig": {
"Type": "",
"ReferencedSamplesFilter": "",
"Thresholds": {
"Expected": {
"Value": "",
"Operator": "",
"Expression": ""
},
"Warned": {
"Value": "",
"Operator": "",
"Expression": ""
},
"Critical": {
"Value": "",
"Operator": "",
"Expression": ""
}
}
},
"ErrorHandlers": [
{
"Type": "",
"ErrorDataFilter": ""
}
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.