1 package com.griddynamics.jagger.engine.e1.collector;
3 import static com.griddynamics.jagger.util.StandardMetricsNamesUtil.SUCCESS_RATE_AGGREGATOR_FAILED_ID;
19 return new SuccessRateFailsAggregator();
22 private static class SuccessRateFailsAggregator
implements MetricAggregator<Number>
27 public void append(Number calculated)
29 if (calculated.intValue() == 0)
34 public Double getAggregated() {
35 return new Double(failNum);
43 public String getName() {
44 return SUCCESS_RATE_AGGREGATOR_FAILED_ID;