@Test public void testLabels() { assertEquals(null, getLabelsValue("a")); assertEquals(null, getLabelsValue("b")); labels.labels("a").inc(); assertEquals(1.0, getLabelsValue("a").doubleValue(), .001); assertEquals(null, getLabelsValue("b")); labels.labels("b").inc(3); assertEquals(1.0, getLabelsValue("a").doubleValue(), .001); assertEquals(3.0, getLabelsValue("b").doubleValue(), .001); }
public void inc() { inc(1); }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void inc() { inc(1); } }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void inc() { inc(1); } Gauge(Builder b); }
Gauge extends SimpleCollector<Gauge.Child> implements Collector.Describable { public void inc() { inc(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 inc() { inc(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();  }