@NotThreadSafe public class AWSRequestMetricsFullSupport extends AWSRequestMetrics
AWSRequestMetrics, which is intended to be a minimal
support of AWS SDK request metrics, this class is the full support of AWS SDK
request metrics including features such as properties and sub-events.
This class is instantiated instead of AWSRequestMetrics when request
metric collection is required during a particular service request/response
cycle.
AWSRequestMetrics.FieldSIMPLE_NAME| Constructor and Description |
|---|
AWSRequestMetricsFullSupport()
This constructor should be used in the case when AWS SDK metrics
collector is enabled.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(MetricType f,
Object value) |
void |
addProperty(String propertyName,
Object value)
Add a property.
|
void |
endEvent(MetricType f) |
void |
endEvent(String eventName)
End an event which was previously started.
|
List<Object> |
getProperty(MetricType f) |
List<Object> |
getProperty(String propertyName) |
void |
incrementCounter(MetricType f) |
void |
incrementCounter(String event)
Add 1 to an existing count for a given event.
|
boolean |
isEnabled()
Always returns true.
|
void |
log() |
void |
setCounter(MetricType f,
long count) |
void |
setCounter(String counterName,
long count) |
void |
startEvent(MetricType f) |
void |
startEvent(String eventName)
Start an event which will be timed.
|
addPropertyWith, addPropertyWith, getTimingInfo, incrementCounterWith, incrementCounterWith, withCounter, withCounterpublic AWSRequestMetricsFullSupport()
AWSRequestMetricsFullSupportpublic void startEvent(String eventName)
RequestMetricCollector is in use either at the request, web service
client, or AWS SDK level.startEvent in class AWSRequestMetricseventName - - The name of the event to startAwsSdkMetricspublic void startEvent(MetricType f)
startEvent in class AWSRequestMetricspublic void endEvent(String eventName)
endEvent in class AWSRequestMetricseventName - - The name of the event to startpublic void endEvent(MetricType f)
endEvent in class AWSRequestMetricspublic void incrementCounter(String event)
RequestMetricCollector is in use either at the request, web service
client, or AWS SDK level.incrementCounter in class AWSRequestMetricsevent - - The name of the event to countpublic void incrementCounter(MetricType f)
incrementCounter in class AWSRequestMetricspublic void setCounter(String counterName, long count)
setCounter in class AWSRequestMetricspublic void setCounter(MetricType f, long count)
setCounter in class AWSRequestMetricspublic void addProperty(String propertyName, Object value)
RequestMetricCollector is in use either at the request, web service
client, or AWS SDK level.addProperty in class AWSRequestMetricspropertyName - The name of the propertyvalue - The property valuepublic void addProperty(MetricType f, Object value)
addProperty in class AWSRequestMetricspublic void log()
log in class AWSRequestMetricspublic List<Object> getProperty(String propertyName)
getProperty in class AWSRequestMetricspublic List<Object> getProperty(MetricType f)
getProperty in class AWSRequestMetricspublic final boolean isEnabled()
isEnabled in class AWSRequestMetrics