Interface RequestMetricTransformer
-
public interface RequestMetricTransformer
Internal SPI used to provide custom request metric transformer that can be added to or override the default AWS SDK implementation. Implementation of this interface should ensure theObject.equals(Object)
andObject.hashCode()
methods are overridden as necessary.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RequestMetricTransformer.Utils
Common utilities for implementing this SPI.
-
Field Summary
Fields Modifier and Type Field Description static RequestMetricTransformer
NONE
A convenient instance of a no-op request metric transformer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<MetricDatum>
toMetricData(MetricType metricType, Request<?> request, Response<?> response)
Returns a list of metric datum for the metrics collected for the given request/response, or null if this transformer does not recognize the specific input metric type.
-
-
-
Field Detail
-
NONE
static final RequestMetricTransformer NONE
A convenient instance of a no-op request metric transformer.
-
-
Method Detail
-
toMetricData
List<MetricDatum> toMetricData(MetricType metricType, Request<?> request, Response<?> response)
Returns a list of metric datum for the metrics collected for the given request/response, or null if this transformer does not recognize the specific input metric type.Note returning an empty list means the transformer recognized the metric type but concluded there is no metrics to be generated for it.
- Parameters:
metricType
- the predefined metric type
-
-