Package com.amazonaws.metrics
Class ServiceMetricCollector
java.lang.Object
com.amazonaws.metrics.ServiceMetricCollector
- Direct Known Subclasses:
ServiceMetricCollectorSupport
A service provider interface that can be used to implement an AWS SDK
general purpose metric collector.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServiceMetricCollectorA convenient instance of a no-op service metric collector. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcollectByteThroughput(ByteThroughputProvider provider) Collects metrics on the number of bytes written or read and the respective duration.abstract voidcollectLatency(ServiceLatencyProvider provider) Collects metrics for non-request specific latencies.boolean
-
Field Details
-
NONE
A convenient instance of a no-op service metric collector.
-
-
Constructor Details
-
ServiceMetricCollector
public ServiceMetricCollector()
-
-
Method Details
-
collectByteThroughput
Collects metrics on the number of bytes written or read and the respective duration. -
collectLatency
Collects metrics for non-request specific latencies. -
isEnabled
public boolean isEnabled()
-