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 the
Object.equals(Object)
and
Object.hashCode()
methods are overridden as necessary.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Common utilities for implementing this SPI. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RequestMetricTransformer
A convenient instance of a no-op request metric transformer. -
Method Summary
Modifier and TypeMethodDescriptiontoMetricData
(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 Details
-
NONE
A convenient instance of a no-op request metric transformer.
-
-
Method Details
-
toMetricData
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
-