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 Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Common utilities for implementing this SPI.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    A convenient instance of a no-op request metric transformer.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

  • Method Details

    • 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