public class NullMetricsScope extends Object implements IMetricsScope
METRICS_DIMENSIONS_ALL| Constructor and Description |
|---|
NullMetricsScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(String name,
double value,
com.amazonaws.services.cloudwatch.model.StandardUnit unit)
Adds a data point to this IMetricsScope.
|
void |
addData(String name,
double value,
com.amazonaws.services.cloudwatch.model.StandardUnit unit,
MetricsLevel level)
Adds a data point to this IMetricsScope if given metrics level is enabled.
|
void |
addDimension(String name,
String value)
Adds a dimension that applies to all metrics in this IMetricsScope.
|
void |
end()
Flushes the data from this IMetricsScope and causes future calls to addData and addDimension to fail.
|
public void addData(String name, double value, com.amazonaws.services.cloudwatch.model.StandardUnit unit)
IMetricsScopeaddData in interface IMetricsScopename - data point namevalue - data point valueunit - unit of data pointpublic void addData(String name, double value, com.amazonaws.services.cloudwatch.model.StandardUnit unit, MetricsLevel level)
IMetricsScopeaddData in interface IMetricsScopename - data point namevalue - data point valueunit - unit of data pointlevel - metrics level of this data pointpublic void addDimension(String name, String value)
IMetricsScopeaddDimension in interface IMetricsScopename - dimension namevalue - dimension valuepublic void end()
IMetricsScopeend in interface IMetricsScopeCopyright © 2017. All rights reserved.