@SdkInternalApi
    final BatchPutMetricsResult executeBatchPutMetrics(BatchPutMetricsRequest batchPutMetricsRequest) {

        ExecutionContext executionContext = createExecutionContext(batchPutMetricsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<BatchPutMetricsRequest> request = null;
        Response<BatchPutMetricsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new BatchPutMetricsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(batchPutMetricsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker Metrics");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchPutMetrics");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<BatchPutMetricsResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new BatchPutMetricsResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Used to ingest training metrics into SageMaker. These metrics can be visualized in SageMaker Studio and retrieved
with the <code>GetMetrics</code> API.
</p>

@param batchPutMetricsRequest
@return Result of the BatchPutMetrics operation returned by the service.
@sample AmazonSageMakerMetrics.BatchPutMetrics
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-metrics-2022-09-30/BatchPutMetrics"
     target="_top">AWS API Documentation</a>
aws-java-sdk-sagemakermetrics/src/main/java/com/amazonaws/services/sagemakermetrics/AmazonSageMakerMetricsClient.java