public class SumInstancesAggregator extends Object implements SingleValueAggregator
Constructor and Description |
---|
SumInstancesAggregator(String aggregationName,
MetricsSystem.InstanceType instanceType,
String metricName)
Creates an instance of
SumInstancesAggregator . |
Modifier and Type | Method and Description |
---|---|
List<MetricsFilter> |
getFilters() |
MetricsSystem.InstanceType |
getInstanceType() |
String |
getName() |
long |
getValue(Map<MetricsFilter,Set<Metric>> map)
Gets the aggregated value from the filtered metrics.
|
public SumInstancesAggregator(String aggregationName, MetricsSystem.InstanceType instanceType, String metricName)
SumInstancesAggregator
.aggregationName
- the aggregation nameinstanceType
- instance type which can be worker or clientmetricName
- the metric namepublic MetricsSystem.InstanceType getInstanceType()
public String getName()
getName
in interface MetricsAggregator
public List<MetricsFilter> getFilters()
getFilters
in interface MetricsAggregator
public long getValue(Map<MetricsFilter,Set<Metric>> map)
SingleValueAggregator
MetricsFilter
defined in MetricsAggregator.getFilters()
.getValue
in interface SingleValueAggregator
map
- a map of MetricsFilter
to the set of metrics that it filter toCopyright © 2023. All Rights Reserved.