@Override public double get999thPercentile() { return histogram.getStatistics().getQuantile(0.999); } }
@Override public long getMin() { return histogram.getStatistics().getMin(); }
@Override public long getMax() { return histogram.getStatistics().getMax(); }
@Test public void testGetCount() { Counter c = new SimpleCounter(); c.inc(5); Meter m = new MeterView(c, 60); assertEquals(5, m.getCount()); }
/** * Visibility of this method must not be changed * since we deliberately not map it to json object in a Datadog-defined format. */ @Override public Number getMetricValue() { return counter.getCount(); } }
@Override public double getMean() { return histogram.getStatistics().getMean(); }
@Override public double getStdDev() { return histogram.getStatistics().getStdDev(); }
/** * Visibility of this method must not be changed * since we deliberately not map it to json object in a Datadog-defined format. */ @Override public Number getMetricValue() { return gauge.getValue(); } }
@Override public double get() { return meter.getRate(); } };
@Override public long getCount() { return meter.getCount(); } }
@Override public double get95thPercentile() { return histogram.getStatistics().getQuantile(0.95); }
@Override public void update() { time = (time + 1) % values.length; values[time] = counter.getCount(); currentRate = ((double) (values[time] - values[(time + 1) % values.length]) / timeSpanInSeconds); } }
@Override public Number getMetricValue() { return meter.getRate(); } }
@Override public double get99thPercentile() { return histogram.getStatistics().getQuantile(0.99); }
@Override public long getCount() { return this.counter.getCount(); } }
@Override public double getMedian() { return histogram.getStatistics().getQuantile(0.5); }
@Override public double get() { return (double) counter.getCount(); } };
@Override public double get75thPercentile() { return histogram.getStatistics().getQuantile(0.75); }
@Override public long getCount() { return counter.getCount(); } }
@Override public double get98thPercentile() { return histogram.getStatistics().getQuantile(0.98); }