View a markdown version of this page

PublishDataQualityResultV2 - AWS Glue

PublishDataQualityResultV2

Note

This operation is intended for internal use. Do not call it directly.

AWS Glue Data Quality uses this operation to publish a data quality result.

Request 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" } ], "ClientToken": "string", "DataQualitySecurityConfiguration": "string", "Descriptors": { "string" : "string" }, "Dimensions": { "string" : "string" }, "EvaluationContext": "string", "ExecutionCompletedOn": number, "ExecutionStartedOn": number, "Observations": [ { "Description": "string", "MetricBasedObservation": { "MetricName": "string", "MetricValues": { "ActualValue": number, "ExpectedValue": number, "LowerLimit": number, "UpperLimit": number }, "NewRules": [ "string" ], "StatisticId": "string" } } ], "RuleResults": [ { "Description": "string", "EvaluatedMetrics": { "string" : number }, "EvaluatedRule": "string", "EvaluationMessage": "string", "Labels": { "string" : "string" }, "Name": "string", "Result": "string", "RuleMetrics": { "string" : number } } ], "RulesetName": "string", "RunConfiguration": { "ObservationMode": "string", "ObservationsEnabled": "string" }, "Score": number, "Statistics": [ { "ColumnsReferenced": [ "string" ], "DistributionValue": { "BinEdges": [ "string" ], "Count": [ number ], "DataType": "string" }, "DoubleValue": number, "EvaluationLevel": "string", "InclusionAnnotation": { "LastModifiedOn": number, "Value": "string" }, "ProfileId": "string", "RecordedOn": number, "ReferencedDatasets": [ "string" ], "RunIdentifier": { "JobRunId": "string", "RunId": "string" }, "StatisticId": "string", "StatisticName": "string", "StatisticProperties": { "string" : "string" } } ], "Tags": { "string" : "string" }, "Telemetry": { "Engine": "string", "FlagsEnabled": { "string" : "string" }, "HostRuntimeVersion": "string", "LibraryVersion": "string", "SparkVersion": "string", "VcpuHours": number } }

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.

AggregatedMetrics

The aggregated metrics for the result.

Type: DataQualityAggregatedMetrics object

Required: No

AnalyzerResults

The analyzer level results.

Type: Array of DataQualityAnalyzerResult objects

Array Members: Minimum number of 0 items. Maximum number of 2000 items.

Required: No

ClientToken

The client token for the request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[a-zA-Z0-9_-]+$

Required: No

DataQualitySecurityConfiguration

The security configuration for the result.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*

Required: No

Descriptors

The descriptors for the result.

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]*

Required: No

Dimensions

The dimensions for the result.

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]*

Required: Yes

EvaluationContext

The evaluation context for the 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

ExecutionCompletedOn

The time execution completed for the result.

Type: Timestamp

Required: No

ExecutionStartedOn

The time execution started for the result.

Type: Timestamp

Required: No

Observations

The observations for the result.

Type: Array of DataQualityObservation objects

Array Members: Minimum number of 0 items. Maximum number of 50 items.

Required: No

RuleResults

The rule level results.

Type: Array of DataQualityRuleResult objects

Array Members: Minimum number of 0 items. Maximum number of 2000 items.

Required: Yes

RulesetName

The ruleset name for the result.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*

Required: No

RunConfiguration

The run configuration for the result.

Type: DataQualityConfigurationV2 object

Required: No

Score

The score for the result.

Type: Double

Valid Range: Minimum value of 0.0. Maximum value of 1.0.

Required: Yes

Statistics

The statistics for the result.

Type: Array of StatisticSummary objects

Required: No

Tags

The tags for the 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]*

Required: No

Telemetry

Type: DataQualityTelemetry object

Required: No

Response Syntax

{ "ResultId": "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.

ResultId

The ID of the result.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

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.

IdempotentParameterMismatchException

The same unique identifier was associated with two different records.

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

ResourceNumberLimitExceededException

A resource numerical limit was exceeded.

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: