public class DynamoDBRequestMetricTransformer extends java.lang.Object implements RequestMetricTransformer
AWSMetricTransformerFactory
RequestMetricTransformer.Utils
NONE
Constructor and Description |
---|
DynamoDBRequestMetricTransformer() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
requestType(Request<?> req)
Returns the name of the type of request.
|
java.util.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.
|
private java.util.List<MetricDatum> |
toMetricData0(MetricType metricType,
Request<?> req,
Response<?> response) |
public java.util.List<MetricDatum> toMetricData(MetricType metricType, Request<?> request, Response<?> response)
RequestMetricTransformer
Note returning an empty list means the transformer recognized the metric type but concluded there is no metrics to be generated for it.
toMetricData
in interface RequestMetricTransformer
metricType
- the predefined metric typeprivate java.util.List<MetricDatum> toMetricData0(MetricType metricType, Request<?> req, Response<?> response) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
private java.lang.String requestType(Request<?> req)