Use ListQualityResultsByEntity to retrieve validation results based on a partition expression.
This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - ListDataQualityScanRuns for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Operation description
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EntityId |
integer |
Yes |
The ID of the partition expression. You can call the GetQualityEntity operation to obtain this ID. |
15232 |
| StartDate |
string |
Yes |
The start of the business date range. The value must be in the |
2020-09-20 00:00:00 |
| EndDate |
string |
Yes |
The end of the business date range. The value must be in the |
2020-09-21 00:00:00 |
| PageSize |
integer |
Yes |
The number of entries to return per page. The default is 10, and the maximum is 20. |
10 |
| PageNumber |
integer |
Yes |
The page number to return. |
1 |
| ProjectName |
string |
Yes |
The name of the engine or data source. You can find this name on the Data Source Configuration page. |
autotest |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. |
12345 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data quality check results. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| ErrorMessage |
string |
The error message. |
You have no permission. |
| RequestId |
string |
The ID of the request. |
CBA58543-00D4-41**** |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrorCode |
string |
The error code. |
401 |
| Data |
object |
The data object that contains the quality check results. |
|
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| TotalCount |
integer |
The total number of entries. |
50 |
| RuleChecks |
array<object> |
The monitoring rule check results. |
|
|
array<object> |
The check result. |
||
| BlockType |
integer |
The strength of the monitoring rule. Valid values:
|
0 |
| WarningThreshold |
number |
The warning threshold. This value indicates the acceptable deviation from the expected value. You can customize this threshold based on your business requirements. |
0.1 |
| Property |
string |
The name of the monitored column in the Data Source table. |
type |
| TableName |
string |
The name of the table that is monitored. |
dual |
| Comment |
string |
The description of the monitoring rule. |
The description of the rule. |
| CheckResultStatus |
integer |
The status of the check result. This parameter corresponds to the status displayed in the UI. Valid values:
|
0 |
| TemplateName |
string |
The name of the rule template. |
Expected value verification |
| CheckerName |
string |
The name of the checker. |
fulx |
| RuleId |
integer |
The monitoring rule ID. |
123123232 |
| FixedCheck |
boolean |
Specifies whether the check is based on a fixed value. Valid values:
|
false |
| Op |
string |
The comparison operator. |
> |
| UpperValue |
number |
The predicted upper limit. This value is automatically generated after you set a threshold. |
25555 |
| ActualExpression |
string |
The expression that specifies the data partition that was checked. |
ds=20200912 |
| ExternalId |
string |
The Node ID of the Scheduling Task. |
1112323123 |
| TimeCost |
string |
The time taken to run the check, in seconds. |
202 |
| Trend |
string |
The trend of the check result. |
abs |
| ExternalType |
string |
The type of the scheduling system. Currently, only CWF is supported. |
CWF2 |
| BizDate |
integer |
The business date. If the monitored data is offline, the business date is typically the day before the check is performed. |
1600704000000 |
| CheckResult |
integer |
The check result. This parameter usually has the same value as
|
0 |
| ResultString |
string |
The check result, returned as a string. |
test |
| MatchExpression |
string |
The partition filter expression. |
ds=$[yyyymmdd] |
| CheckerType |
integer |
The type of the checker. Valid values:
|
1 |
| ProjectName |
string |
The name of the monitored compute engine or Data Source. |
autotest |
| BeginTime |
integer |
The start time of the check. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1600704000000 |
| DateType |
string |
The scheduling cycle. A common value is YMD, which represents year, month, and day. |
YMD |
| CriticalThreshold |
number |
The acceptable deviation from the expected value that triggers a critical alert. This threshold is customizable. If a critical alert is triggered for a Strong Rule, the associated Scheduling Task is blocked. |
0.5 |
| IsPrediction |
boolean |
Specifies whether the result is a predicted value. Valid values:
|
true |
| RuleName |
string |
The name of the monitoring rule. |
The name of the rule. |
| CheckerId |
integer |
The ID of the checker. |
7 |
| DiscreteCheck |
boolean |
Specifies whether the check is a discrete check. Valid values:
|
true |
| EndTime |
integer |
The end time of the check. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1600704000000 |
| MethodName |
string |
The method for collecting sample data. Valid values include |
count_distinct |
| LowerValue |
number |
The predicted lower limit. This value is automatically generated after you set a threshold. |
2344 |
| EntityId |
integer |
The ID of the partition filter expression. |
15432322 |
| WhereCondition |
string |
The filter condition of the monitoring rule. |
id>0 |
| ExpectValue |
number |
The expected value. |
200 |
| TemplateId |
integer |
The ID of the rule template. |
5 |
| TaskId |
string |
The ID of the check task. |
16008552981681a0d6**** |
| Id |
integer |
The unique ID of the check result. |
121212121 |
| ReferenceValue |
array<object> |
The historical sample values. |
|
|
object |
A historical check result. |
||
| DiscreteProperty |
string |
The value of the sample field when a |
0 |
| Value |
number |
The historical check value. |
19 |
| BizDate |
string |
The business date. If the monitored data is offline, the business date is typically the day before the check is performed. |
2020-12-03 |
| SingleCheckResult |
integer |
The result of a single check. |
0 |
| Threshold |
number |
The threshold that was applied to this historical data point. |
0.5 |
| SampleValue |
array<object> |
The current sample values. |
|
|
object |
A sample check result. |
||
| DiscreteProperty |
string |
The value of the sample field when a |
0 |
| BizDate |
string |
The business date. If the monitored data is offline, the business date is typically the day before the check is performed. |
2020-12-03 |
| Value |
number |
The current sample value. |
19 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"ErrorMessage": "You have no permission.",
"RequestId": "CBA58543-00D4-41****",
"Success": true,
"ErrorCode": "401",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 50,
"RuleChecks": [
{
"BlockType": 0,
"WarningThreshold": 0.1,
"Property": "type",
"TableName": "dual",
"Comment": "The description of the rule.",
"CheckResultStatus": 0,
"TemplateName": "Expected value verification",
"CheckerName": "fulx",
"RuleId": 123123232,
"FixedCheck": false,
"Op": ">",
"UpperValue": 25555,
"ActualExpression": "ds=20200912",
"ExternalId": "1112323123",
"TimeCost": "202",
"Trend": "abs",
"ExternalType": "CWF2",
"BizDate": 1600704000000,
"CheckResult": 0,
"ResultString": "test",
"MatchExpression": "ds=$[yyyymmdd]",
"CheckerType": 1,
"ProjectName": "autotest",
"BeginTime": 1600704000000,
"DateType": "YMD",
"CriticalThreshold": 0.5,
"IsPrediction": true,
"RuleName": "The name of the rule.",
"CheckerId": 7,
"DiscreteCheck": true,
"EndTime": 1600704000000,
"MethodName": "count_distinct",
"LowerValue": 2344,
"EntityId": 15432322,
"WhereCondition": "id>0",
"ExpectValue": 200,
"TemplateId": 5,
"TaskId": "16008552981681a0d6****",
"Id": 121212121,
"ReferenceValue": [
{
"DiscreteProperty": "0",
"Value": 19,
"BizDate": "2020-12-03",
"SingleCheckResult": 0,
"Threshold": 0.5
}
],
"SampleValue": [
{
"DiscreteProperty": "0",
"BizDate": "2020-12-03",
"Value": 19
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.