public class NullMetricsScope extends Object implements MetricsScope
METRICS_DIMENSIONS_ALL
Constructor and Description |
---|
NullMetricsScope() |
Modifier and Type | Method and Description |
---|---|
void |
addData(String name,
double value,
software.amazon.awssdk.services.cloudwatch.model.StandardUnit unit)
Adds a data point to this IMetricsScope.
|
void |
addData(String name,
double value,
software.amazon.awssdk.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, software.amazon.awssdk.services.cloudwatch.model.StandardUnit unit)
MetricsScope
addData
in interface MetricsScope
name
- data point namevalue
- data point valueunit
- unit of data pointpublic void addData(String name, double value, software.amazon.awssdk.services.cloudwatch.model.StandardUnit unit, MetricsLevel level)
MetricsScope
addData
in interface MetricsScope
name
- data point namevalue
- data point valueunit
- unit of data pointlevel
- metrics level of this data pointpublic void addDimension(String name, String value)
MetricsScope
addDimension
in interface MetricsScope
name
- dimension namevalue
- dimension valuepublic void end()
MetricsScope
end
in interface MetricsScope
Copyright © 2020. All rights reserved.