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