1 package com.griddynamics.jagger.engine.e1.collector;
3 import static com.griddynamics.jagger.util.StandardMetricsNamesUtil.MIN_AGGREGATOR_ID;
13 return new MinMetricAggregator();
16 private static class MinMetricAggregator
implements MetricAggregator<Number> {
18 private Double value = null;
21 public void append(Number calculated) {
23 value = calculated.doubleValue();
25 value = Math.min(value, calculated.doubleValue());
30 public Double getAggregated() {
40 public String getName() {
41 return MIN_AGGREGATOR_ID;