public final class AggregatedMetricDouble extends AggregatedMetric<Double>
count, max, min, sum
Constructor and Description |
---|
AggregatedMetricDouble()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(Double value,
String hostnamePartitionId)
Add another item to the aggregation.
|
double |
mean()
Get average of all the values
|
public void addItem(Double value, String hostnamePartitionId)
AggregatedMetric
addItem
in class AggregatedMetric<Double>
value
- value to addhostnamePartitionId
- String hostname it came frompublic double mean()
AggregatedMetric
mean
in class AggregatedMetric<Double>
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.