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.
    • 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