{ "version":"2.0", "metadata":{ "apiVersion":"2022-09-30", "endpointPrefix":"metrics.sagemaker", "protocol":"rest-json", "serviceAbbreviation":"SageMaker Metrics", "serviceFullName":"Amazon SageMaker Metrics Service", "serviceId":"SageMaker Metrics", "signatureVersion":"v4", "signingName":"sagemaker", "uid":"sagemaker-metrics-2022-09-30" }, "operations":{ "BatchPutMetrics":{ "name":"BatchPutMetrics", "http":{ "method":"PUT", "requestUri":"/BatchPutMetrics" }, "input":{"shape":"BatchPutMetricsRequest"}, "output":{"shape":"BatchPutMetricsResponse"}, "documentation":"

Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio and retrieved with the GetMetrics API.

" } }, "shapes":{ "BatchPutMetricsError":{ "type":"structure", "members":{ "Code":{ "shape":"PutMetricsErrorCode", "documentation":"

The error code of an error that occured when attempting to put metrics.

" }, "MetricIndex":{ "shape":"Integer", "documentation":"

An index that corresponds to the metric in the request.

" } }, "documentation":"

An error that occured when putting the metric data.

" }, "BatchPutMetricsErrorList":{ "type":"list", "member":{"shape":"BatchPutMetricsError"}, "max":10, "min":1 }, "BatchPutMetricsRequest":{ "type":"structure", "required":[ "TrialComponentName", "MetricData" ], "members":{ "TrialComponentName":{ "shape":"ExperimentEntityName", "documentation":"

The name of the Trial Component to associate with the metrics.

" }, "MetricData":{ "shape":"RawMetricDataList", "documentation":"

A list of raw metric values to put.

" } } }, "BatchPutMetricsResponse":{ "type":"structure", "members":{ "Errors":{ "shape":"BatchPutMetricsErrorList", "documentation":"

Lists any errors that occur when inserting metric data.

" } } }, "Double":{"type":"double"}, "ExperimentEntityName":{ "type":"string", "max":120, "min":1, "pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,119}" }, "Integer":{"type":"integer"}, "MetricName":{ "type":"string", "max":255, "min":1, "pattern":".+" }, "PutMetricsErrorCode":{ "type":"string", "enum":[ "METRIC_LIMIT_EXCEEDED", "INTERNAL_ERROR", "VALIDATION_ERROR", "CONFLICT_ERROR" ] }, "RawMetricData":{ "type":"structure", "required":[ "MetricName", "Timestamp", "Value" ], "members":{ "MetricName":{ "shape":"MetricName", "documentation":"

The name of the metric.

" }, "Timestamp":{ "shape":"Timestamp", "documentation":"

The time that the metric was recorded.

" }, "Step":{ "shape":"Step", "documentation":"

The metric step (epoch).

" }, "Value":{ "shape":"Double", "documentation":"

The metric value.

" } }, "documentation":"

The raw metric data to associate with the resource.

" }, "RawMetricDataList":{ "type":"list", "member":{"shape":"RawMetricData"}, "max":10, "min":1 }, "Step":{ "type":"integer", "min":0 }, "Timestamp":{"type":"timestamp"} }, "documentation":"

Contains all data plane API operations and data types for Amazon SageMaker Metrics. Use these APIs to put and retrieve (get) features related to your training run.

" }