public class CWMetricsScope extends FilteringMetricsScope implements IMetricsScope
dataMETRICS_DIMENSIONS_ALL| Constructor and Description |
|---|
CWMetricsScope(CWPublisherRunnable<CWMetricKey> 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, addDimensiongetKeyaddDatagetDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddData, addData, addDimensionpublic CWMetricsScope(CWPublisherRunnable<CWMetricKey> 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 IMetricsScopeend in class EndingMetricsScopeCopyright © 2017. All rights reserved.