Queries the information about a data quality monitoring rule.
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 |
---|---|---|---|---|
Id | long | Yes | The rule ID. | 19715 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "691CA452-D37A-4ED0-9441\n",
"DataQualityRule": {
"Id": 16033,
"Name": "The table cannot be empty.",
"ProjectId": 1948,
"Enabled": true,
"Severity": "High",
"Description": "this is a odps _sql task\n",
"Target": {
"Type": "Table",
"DatabaseType": "maxcompute",
"TableGuid": "odps.unit_test.tb_unit_test\n",
"PartitionSpec": "ds=$[yyyymmdd-1]\n"
},
"TemplateCode": "system::user_defined\n",
"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;\n",
"SamplingFilter": "id IS NULL\n"
},
"CheckingConfig": {
"Type": "Fixed",
"ReferencedSamplesFilter": "{ \"bizdate\": [ \"-1\", \"-7\", \"-1m\" ] }\n",
"Thresholds": {
"Expected": {
"Operator": ">",
"Value": "100.0",
"Expression": "$checkValue <= 0.01"
},
"Warned": {
"Operator": ">",
"Value": "100.0",
"Expression": "$checkValue > 0.01"
},
"Critical": {
"Operator": ">",
"Value": "100.0",
"Expression": "$checkValue > 0.05"
}
}
},
"ErrorHandlers": [
{
"Type": "SaveErrorData\n",
"ErrorDataFilter": "SELECT * FROM tb_api_log WHERE id IS NULL\n"
}
]
}
}
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-12-19 | The internal configuration of the API is changed, but the call is not affected | View Change Details |