public class CloudWatchMetricsScope extends FilteringMetricsScope implements MetricsScope
data
METRICS_DIMENSIONS_ALL
Constructor and Description |
---|
CloudWatchMetricsScope(CloudWatchPublisherRunnable publisher,
MetricsLevel metricsLevel,
Set<String> metricsEnabledDimensions)
Creates a CloudWatch metrics scope with given metrics level and enabled dimensions.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
Once we call this method, all MetricDatums added to the scope will be enqueued to the publisher runnable.
|
addData, addData, addDimension
getKey
addData
getDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addData, addData, addDimension
public CloudWatchMetricsScope(CloudWatchPublisherRunnable publisher, MetricsLevel metricsLevel, Set<String> metricsEnabledDimensions)
publisher
- Publisher that emits CloudWatch metrics periodically.metricsLevel
- Metrics level to enable. All data with level below this will be dropped.metricsEnabledDimensions
- Enabled dimensions for CloudWatch metrics.public void end()
end
in interface MetricsScope
end
in class EndingMetricsScope
Copyright © 2019. All rights reserved.