@Test public void testDecrement() { noLabels.dec(); assertEquals(-1.0, getValue(), .001); noLabels.dec(2); assertEquals(-3.0, getValue(), .001); noLabels.labels().dec(4); assertEquals(-7.0, getValue(), .001); noLabels.labels().dec(); assertEquals(-8.0, getValue(), .001); }
public void dec() { dec(1); }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void dec() { dec(1); } }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void dec() { dec(1); } Gauge(Builder b); }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void dec() { dec(1); } Gauge(Builder b); static Builder build(String name, String help); static Builder build(); void inc(); void inc(double amt); void dec(); void dec(double amt); void set(double val); void setToCurrentTime(); Timer startTimer(); double setToTime(Runnable timeable); E setToTime(Callable<E> timeable); double get(); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe(); }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void dec() { dec(1); } Gauge(Builder b); static Builder build(String name, String help); static Builder build(); void inc(); void inc(double amt); void dec(); void dec(double amt); void set(double val); void setToCurrentTime(); Timer startTimer(); double setToTime(Runnable timeable); E setToTime(Callable<E> timeable); double get(); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe();  }