@Deprecated 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.Field
timingInfo
Constructor and Description |
---|
AWSRequestMetricsFullSupport()
Deprecated.
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)
Deprecated.
|
void |
addProperty(String propertyName,
Object value)
Deprecated.
Add a property.
|
void |
endEvent(MetricType f)
Deprecated.
|
void |
endEvent(String eventName)
Deprecated.
End an event which was previously started.
|
List<Object> |
getProperty(MetricType f)
Deprecated.
|
List<Object> |
getProperty(String propertyName)
Deprecated.
|
void |
incrementCounter(MetricType f)
Deprecated.
|
void |
incrementCounter(String event)
Deprecated.
Add 1 to an existing count for a given event.
|
boolean |
isEnabled()
Deprecated.
Always returns true.
|
void |
log()
Deprecated.
log.
|
void |
setCounter(MetricType f,
long count)
Deprecated.
|
void |
setCounter(String counterName,
long count)
Deprecated.
|
void |
startEvent(MetricType f)
Deprecated.
|
void |
startEvent(String eventName)
Deprecated.
Start an event which will be timed.
|
getTimingInfo
public AWSRequestMetricsFullSupport()
AWSRequestMetricsFullSupport
public void startEvent(String eventName)
RequestMetricCollector
is in use either at the request, web
service client, or AWS SDK level.startEvent
in class AWSRequestMetrics
eventName
- - The name of the event to startAwsSdkMetrics
public void startEvent(MetricType f)
startEvent
in class AWSRequestMetrics
f
- the metric type.public void endEvent(String eventName)
endEvent
in class AWSRequestMetrics
eventName
- - The name of the event to startpublic void endEvent(MetricType f)
endEvent
in class AWSRequestMetrics
f
- the metric type.public void incrementCounter(String event)
RequestMetricCollector
is in use either at the request, web
service client, or AWS SDK level.incrementCounter
in class AWSRequestMetrics
event
- - The name of the event to countpublic void incrementCounter(MetricType f)
incrementCounter
in class AWSRequestMetrics
f
- the metric type.public void setCounter(String counterName, long count)
setCounter
in class AWSRequestMetrics
counterName
- the counter name.count
- the count.public void setCounter(MetricType f, long count)
setCounter
in class AWSRequestMetrics
f
- the metric type.count
- the count.public void addProperty(String propertyName, Object value)
RequestMetricCollector
is in use either at the request, web
service client, or AWS SDK level.addProperty
in class AWSRequestMetrics
propertyName
- The name of the propertyvalue
- The property valuepublic void addProperty(MetricType f, Object value)
addProperty
in class AWSRequestMetrics
f
- the metric type.value
- the value.public void log()
AWSRequestMetrics
log
in class AWSRequestMetrics
public List<Object> getProperty(String propertyName)
getProperty
in class AWSRequestMetrics
propertyName
- the property name.public List<Object> getProperty(MetricType f)
getProperty
in class AWSRequestMetrics
f
- the metric type.public final boolean isEnabled()
isEnabled
in class AWSRequestMetrics
Copyright © 2018. All rights reserved.