Class MetricEmfConverter
- java.lang.Object
-
- software.amazon.awssdk.metrics.publishers.emf.internal.MetricEmfConverter
-
public class MetricEmfConverter extends Object
ConvertsMetricCollectioninto List of Amazon CloudWatch Embedded Metric Format (EMF) Strings.This class is responsible for transforming
MetricCollectioninto the EMF format required by CloudWatch. It handles the conversion of different metric types and ensures the output conforms to EMF specifications.
-
-
Constructor Summary
Constructors Constructor Description MetricEmfConverter(EmfMetricConfiguration config)MetricEmfConverter(EmfMetricConfiguration config, Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>convertMetricCollectionToEmf(MetricCollection metricCollection)Convert SDK Metrics to EMF Format.
-
-
-
Constructor Detail
-
MetricEmfConverter
public MetricEmfConverter(EmfMetricConfiguration config, Clock clock)
-
MetricEmfConverter
public MetricEmfConverter(EmfMetricConfiguration config)
-
-
Method Detail
-
convertMetricCollectionToEmf
public List<String> convertMetricCollectionToEmf(MetricCollection metricCollection)
Convert SDK Metrics to EMF Format. Transforms a collection of SDK metrics into CloudWatch's Embedded Metric Format (EMF). The method processes standard SDK measurements and structures them according to CloudWatch's EMF specification.
Example Output- Parameters:
metricCollection- Collection of SDK metrics to be converted- Returns:
- List of EMF-formatted metrics ready for CloudWatch
-
-