Class MetricUploader
java.lang.Object
software.amazon.awssdk.metrics.publishers.cloudwatch.internal.MetricUploader
Uploads
PutMetricDataRequest
s to a CloudWatchAsyncClient
, logging whether it was successful or a failure to
the CloudWatchMetricLogger.METRIC_LOGGER
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean closeClient) upload
(List<PutMetricDataRequest> requests) Upload the provided list of requests to CloudWatch, completing the returned future when the uploads complete.
-
Constructor Details
-
MetricUploader
-
-
Method Details
-
upload
Upload the provided list of requests to CloudWatch, completing the returned future when the uploads complete. Note: This will log a message if one of the provided requests fails. -
close
public void close(boolean closeClient)
-