public final class CWMetricTracker extends AbstractMetricTracker implements MetricTracker
| Constructor and Description |
|---|
CWMetricTracker(com.amazonaws.services.cloudwatch.AmazonCloudWatch cloudwatch,
java.lang.String namespace,
java.util.concurrent.ScheduledExecutorService executor,
long flushDelay,
java.util.concurrent.TimeUnit flushDelayUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close tracker, perform any flushing, cleanup, etc.
|
void |
track(java.lang.String metricName,
java.lang.Number value,
Unit unit,
java.util.Collection<CompoundDimension> dimensions)
Track metrics with compound dimensions.
|
track, trackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrack, trackpublic CWMetricTracker(com.amazonaws.services.cloudwatch.AmazonCloudWatch cloudwatch,
java.lang.String namespace,
java.util.concurrent.ScheduledExecutorService executor,
long flushDelay,
java.util.concurrent.TimeUnit flushDelayUnit)
public void track(java.lang.String metricName,
java.lang.Number value,
Unit unit,
java.util.Collection<CompoundDimension> dimensions)
MetricTrackertrack in interface MetricTrackermetricName - metric namevalue - valueunit - unitdimensions - dimensions to track against (ordering unimportant)public void close()
MetricTrackerclose in interface MetricTrackerclose in class AbstractMetricTracker