Private
metricsWrite the accumulated counts through to an object implementing the
MetricsLogger interface and releases the accumulated map of metric names
and counts. Subsequent calls to putMetric
will need another call
to flush
.
MetricsLogger or MetricsLoggerDummy
Put a metric value. These values will only be emitted to CloudWatch when flush() is called, which will put the current count into a metric.
Any Unit that can be aggregated (e.g. Count, Bytes, Milliseconds but not BytesPerSecond)
Generated using TypeDoc
Accumulate (add together) values for
putMetric
calls for Units that can be added (e.g. everything except the PerSecond Units).Emit the accumulated metrics to a
MetricsLogger
class whenflush
is called. Note that theMetricsLogger
must then be flushed or used withmetricsScope
to ensure it is flushed.