public class ThreadSafeMetricsDelegatingScope extends Object implements MetricsScope
METRICS_DIMENSIONS_ALL| Constructor and Description |
|---|
ThreadSafeMetricsDelegatingScope(MetricsScope delegate)
Creates an instance of the metrics scope.
|
| 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 ThreadSafeMetricsDelegatingScope(MetricsScope delegate)
delegate - metrics scope to delegate topublic void addData(String name, double value, software.amazon.awssdk.services.cloudwatch.model.StandardUnit unit)
addData in interface MetricsScopename - 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)
addData in interface MetricsScopename - data point namevalue - data point valueunit - unit of data pointlevel - metrics level of this data pointpublic void addDimension(String name, String value)
addDimension in interface MetricsScopename - dimension namevalue - dimension valuepublic void end()
end in interface MetricsScopeCopyright © 2025. All rights reserved.