GetDataQualityResultV2
Retrieves the result of a data quality rule evaluation published from any supported data platform.
Request Syntax
{
"ResultId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- ResultId
-
A unique result ID for the data quality result.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*Required: Yes
Response Syntax
{
"AggregatedMetrics": {
"TotalRowsFailed": number,
"TotalRowsPassed": number,
"TotalRowsProcessed": number,
"TotalRulesFailed": number,
"TotalRulesPassed": number,
"TotalRulesProcessed": number
},
"AnalyzerResults": [
{
"Description": "string",
"EvaluatedDistributions": {
"string" : {
"BinEdges": [ "string" ],
"Count": [ number ],
"DataType": "string"
}
},
"EvaluatedMetrics": {
"string" : number
},
"EvaluationMessage": "string",
"Name": "string"
}
],
"DataQualityEvaluationConfig": "string",
"DataSource": {
"DataQualityGlueTable": {
"AdditionalOptions": {
"string" : "string"
},
"CatalogId": "string",
"ConnectionName": "string",
"DatabaseName": "string",
"PreProcessingQuery": "string",
"TableName": "string"
},
"GlueTable": {
"AdditionalOptions": {
"string" : "string"
},
"CatalogId": "string",
"ConnectionName": "string",
"DatabaseName": "string",
"TableName": "string"
}
},
"Descriptors": {
"string" : "string"
},
"Dimensions": {
"string" : "string"
},
"EvaluationContext": "string",
"EvaluationRunMode": "string",
"ExecutionCompletedOn": number,
"ExecutionStartedOn": number,
"Observations": [
{
"Description": "string",
"MetricBasedObservation": {
"MetricName": "string",
"MetricValues": {
"ActualValue": number,
"ExpectedValue": number,
"LowerLimit": number,
"UpperLimit": number
},
"NewRules": [ "string" ],
"StatisticId": "string"
}
}
],
"ProfileId": "string",
"ResultId": "string",
"ResultPublishedOn": number,
"RuleResults": [
{
"Description": "string",
"EvaluatedMetrics": {
"string" : number
},
"EvaluatedRule": "string",
"EvaluationMessage": "string",
"Labels": {
"string" : "string"
},
"Name": "string",
"Result": "string",
"RuleMetrics": {
"string" : number
}
}
],
"RulesetName": "string",
"Score": number,
"Tags": {
"string" : "string"
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- AggregatedMetrics
-
A summary of
DataQualityAggregatedMetricsobjects showing the total counts of processed rows and rules, including their pass/fail statistics based on row-level results.Type: DataQualityAggregatedMetrics object
- AnalyzerResults
-
A list of
DataQualityAnalyzerResultobjects representing the results for each analyzer.Type: Array of DataQualityAnalyzerResult objects
Array Members: Minimum number of 0 items. Maximum number of 2000 items.
- DataQualityEvaluationConfig
-
The name of the data quality evaluation configuration that started the evaluation run, returned when
EvaluationRunModeisEVALUATION_CONFIG.Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - DataSource
-
The table associated with the data quality result, if any.
Type: DataSource object
- Descriptors
-
A map of user-provided descriptors that add contextual metadata and configuration to the data quality result, such as database name, table name, team, or environment.
Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 10 items.
Key Length Constraints: Minimum length of 1. Maximum length of 255.
Key Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*Value Length Constraints: Minimum length of 1. Maximum length of 255.
Value Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - Dimensions
-
A map of platform-specific identifiers, such as cluster, application, workgroup, or project IDs, that identify where the data quality evaluation ran.
Type: String to string map
Map Entries: Maximum number of 10 items.
Key Length Constraints: Minimum length of 1. Maximum length of 255.
Key Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*Value Length Constraints: Minimum length of 1. Maximum length of 255.
Value Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - EvaluationContext
-
The evaluation context for the data quality result. This value identifies a specific data quality result, or a series of related results, within a run.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - EvaluationRunMode
-
How the evaluation run that produced the result started:
ON_DEMANDfor a run started byStartDataQualityRulesetEvaluationRun, orEVALUATION_CONFIGfor a run started by a data quality evaluation configuration. Not returned for results that no evaluation run produced, such as results from any ETL job.Type: String
Valid Values:
ON_DEMAND | EVALUATION_CONFIG - ExecutionCompletedOn
-
The date and time when this data quality run completed.
Type: Timestamp
- ExecutionStartedOn
-
The date and time when this data quality run started.
Type: Timestamp
- Observations
-
A list of
DataQualityObservationobjects representing the anomaly detection observations generated after evaluating the rules and analyzers.Type: Array of DataQualityObservation objects
Array Members: Minimum number of 0 items. Maximum number of 50 items.
- ProfileId
-
The Profile ID for the data quality result.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - ResultId
-
A unique result ID for the data quality result.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - ResultPublishedOn
-
The date and time when this data quality result was published.
Type: Timestamp
- RuleResults
-
A list of
DataQualityRuleResultobjects representing the results for each rule.Type: Array of DataQualityRuleResult objects
Array Members: Minimum number of 0 items. Maximum number of 2000 items.
- RulesetName
-
The name of the ruleset associated with the data quality result.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]* - Score
-
An aggregate data quality score. Represents the ratio of rules that passed to the total number of rules.
Type: Double
Valid Range: Minimum value of 0.0. Maximum value of 1.0.
- Tags
-
A map of tags associated with the data quality result.
Type: String to string map
Map Entries: Maximum number of 5 items.
Key Length Constraints: Minimum length of 1. Maximum length of 255.
Key Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*Value Length Constraints: Minimum length of 1. Maximum length of 255.
Value Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*
Errors
For information about the errors that are common to all actions, see Common Error Types.
- EntityNotFoundException
-
A specified entity does not exist
- FromFederationSource
-
Indicates whether or not the exception relates to a federated source.
- Message
-
A message describing the problem.
HTTP Status Code: 400
- InternalServiceException
-
An internal service error occurred.
- Message
-
A message describing the problem.
HTTP Status Code: 500
- InvalidInputException
-
The input provided was not valid.
- FromFederationSource
-
Indicates whether or not the exception relates to a federated source.
- Message
-
A message describing the problem.
HTTP Status Code: 400
- OperationTimeoutException
-
The operation timed out.
- Message
-
A message describing the problem.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: