Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

MetricQuery - Amazon SageMaker

MetricQuery

Specifies a query to retrieve training metrics from SageMaker.

Contents

MetricName

The name of the metric to retrieve.

Type: String

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

Pattern: .+

Required: Yes

MetricStat

The metrics stat type of metrics to retrieve.

Type: String

Valid Values: Min | Max | Avg | Count | StdDev | Last

Required: Yes

Period

The time period of metrics to retrieve.

Type: String

Valid Values: OneMinute | FiveMinute | OneHour | IterationNumber

Required: Yes

ResourceArn

The ARN of the SageMaker resource to retrieve metrics for.

Type: String

Length Constraints: Maximum length of 2048.

Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:[a-z\-].*/.*

Required: Yes

XAxisType

The x-axis type of metrics to retrieve.

Type: String

Valid Values: IterationNumber | Timestamp

Required: Yes

End

The end time of metrics to retrieve.

Type: Long

Required: No

Start

The start time of metrics to retrieve.

Type: Long

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.