Operation description
This API operation is available for all DataWorks editions.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProjectId | long | Yes | The DataWorks workspace ID. | 100 |
BizdateFrom | string | No | The beginning of the time range to query. | 2024-05-01 |
BizdateTo | string | No | The end of the time range to query. | 2024-05-04 |
PageSize | integer | No | The number of entries per page. Default value: 10. | 10 |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "691CA452-D37A-4ED0-9441",
"PagingInfo": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 219,
"DataQualityResults": [
{
"Id": 16033,
"Status": "PASSED",
"CreateTime": 1708284916414,
"TaskInstanceId": 200001,
"Sample": "[\n {\n \"gender\": \"male\",\n \"_count\": 100\n }, {\n \"gender\": \"female\",\n \"_count\": 100\n }\n]",
"Details": [
{
"ReferencedValue": "0.0",
"CheckedValue": "100.0",
"Status": "PASSED"
}
],
"Rule": {
"Id": 100001,
"Name": "",
"ProjectId": 100,
"Enabled": true,
"Severity": "NORMAL",
"Description": "this is a odps _sql task",
"TemplateCode": "system::user_defined",
"Target": {
"Type": "TABLE",
"DatabaseType": "MAX_COMPUTE",
"TableGuid": "odps.unit_test.tb_unit_test",
"PartitionSpec": "ds=$[yyyymmdd-1]"
},
"SamplingConfig": {
"Metric": "COUNT",
"MetricParameters": "{ \"columns\": [ \"id\", \"name\" ] }",
"SettingConfig": "SET odps.sql.udf.timeout=600s; ",
"SamplingFilter": "id IS NULL"
},
"CheckingConfig": {
"Type": "FIXED",
"ReferencedSamplesFilter": "{ \"bizdate\": [ \"-1\", \"-7\", \"-1m\" ] }",
"Thresholds": {
"Expected": {
"Value": "100.0",
"Operator": ">"
},
"Warned": {
"Value": "100.0",
"Operator": ">"
},
"Critical": {
"Value": "100.0",
"Operator": ">"
}
}
},
"ErrorHandlers": [
{
"Type": "SAVE_ERROR_DATA",
"ErrorDataFilter": "SELECT * FROM tb_api_log WHERE id IS NULL"
}
]
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-12-19 | The response structure of the API has changed | View Change Details |
2024-11-06 | The response structure of the API has changed | View Change Details |