Class MetricStatSerDe
- java.lang.Object
-
- com.amazonaws.athena.connectors.cloudwatch.metrics.MetricStatSerDe
-
public class MetricStatSerDe extends Object
Used to serialize and deserialize Cloudwatch Metrics MetricStat objects. This is used when creating and processing Splits.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
SERIALIZED_METRIC_STATS_FIELD_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<software.amazon.awssdk.services.cloudwatch.model.MetricStat>
deserialize(String serializedMetricStats)
Deserializes the provided String into a List of MetricStats.static String
serialize(List<software.amazon.awssdk.services.cloudwatch.model.MetricStat> metricStats)
Serializes the provided List of MetricStats.
-
-
-
Field Detail
-
SERIALIZED_METRIC_STATS_FIELD_NAME
protected static final String SERIALIZED_METRIC_STATS_FIELD_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
public static String serialize(List<software.amazon.awssdk.services.cloudwatch.model.MetricStat> metricStats)
Serializes the provided List of MetricStats.- Parameters:
metricStats
- The list of MetricStats to serialize.- Returns:
- A String containing the serialized list of MetricStats.
-
deserialize
public static List<software.amazon.awssdk.services.cloudwatch.model.MetricStat> deserialize(String serializedMetricStats)
Deserializes the provided String into a List of MetricStats.- Parameters:
serializedMetricStats
- A serialized list of MetricStats.- Returns:
- The List of MetricStats represented by the serialized string.
-
-