public class SingleTagValueAggregator extends Object implements MultiValueMetricsAggregator
Constructor and Description |
---|
SingleTagValueAggregator(String aggregationName,
String metricName,
String tagName)
Constructs a new instance of
SingleTagValueAggregator . |
Modifier and Type | Method and Description |
---|---|
String |
getFilterMetricName() |
long |
getValue(String name)
Gets the metric value of the given fully qualified metric name.
|
Map<String,Long> |
updateValues(Set<Metric> set)
Updates the aggregated values from the filtered metrics.
|
public SingleTagValueAggregator(String aggregationName, String metricName, String tagName)
SingleTagValueAggregator
.aggregationName
- the aggregated metric namemetricName
- metric nametagName
- tag namepublic String getFilterMetricName()
getFilterMetricName
in interface MultiValueMetricsAggregator
public Map<String,Long> updateValues(Set<Metric> set)
MultiValueMetricsAggregator
MultiValueMetricsAggregator.getFilterMetricName()
. The returned values
are organized as a map from the metric name to metric value.updateValues
in interface MultiValueMetricsAggregator
set
- a map of metric name to the set of metrics that have the metric namepublic long getValue(String name)
MultiValueMetricsAggregator
getValue
in interface MultiValueMetricsAggregator
name
- the fully qualified metric nameCopyright © 2023. All Rights Reserved.