Queries a list of data quality monitoring rules by page.
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 | No | The DataWorks workspace ID. | 10002 |
DataQualityEvaluationTaskId | long | No | The ID of the data quality monitoring task that is associated with the rule. | 10000 |
TableGuid | string | No | The ID of the table that is limited by the rule in Data Map. | odps.unit_test.tb_unit_test |
Name | string | No | The name of the rule. Fuzzy match is supported. | unit_test |
PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 200. | 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": 294,
"DataQualityRules": [
{
"Id": 22130,
"Name": "",
"TenantId": 100001,
"ProjectId": 100001,
"Enabled": true,
"Severity": "High",
"Description": "this is a odps _sql task",
"Target": {
"Type": "Table",
"DatabaseType": "maxcompute",
"TableGuid": "odps.unit_test.tb_unit_test",
"PartitionSpec": "ds=$[yyyymmdd-1]"
},
"TemplateCode": "system::user_defined",
"SamplingConfig": {
"Metric": "Max",
"MetricParameters": "{ \"Columns\": [ \"id\", \"name\" ] , \"SQL\": \"select count(1) from table;\"}",
"SettingConfig": "SET odps.sql.udf.timeout=600s; \nSET odps.sql.python.version=cp27;",
"SamplingFilter": "id IS NULL"
},
"CheckingConfig": {
"Type": "Fixed",
"ReferencedSamplesFilter": "{ \"bizdate\": [ \"-1\", \"-7\", \"-1m\" ] }",
"Thresholds": {
"Expected": {
"Operator": ">",
"Value": "100.0"
},
"Warned": {
"Operator": ">",
"Value": "100.0"
},
"Critical": {
"Operator": ">",
"Value": "100.0"
}
}
},
"ErrorHandlers": [
{
"Type": "SaveErrorData\n",
"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-04 | 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 |