java.lang.Object
software.amazon.awssdk.metrics.publishers.cloudwatch.internal.transform.MetricCollectionAggregator

@NotThreadSafe public class MetricCollectionAggregator extends Object
Aggregates MetricCollections by: (1) the minute in which they occurred, and (2) the dimensions in the collection associated with that metric. Allows retrieving the aggregated values as a list of PutMetricDataRequests.

It would be too expensive to upload every MetricCollection as a unique PutMetricDataRequest, so this class aggregates the data so that multiple MetricCollections can be placed in the same PutMetricDataRequest.

Warning: This class is *not* thread-safe.