@Test public void testLabels() { assertEquals(null, getLabelsCount("a")); assertEquals(null, getLabelsSum("a")); assertEquals(null, getLabelsCount("b")); assertEquals(null, getLabelsSum("b")); labels.labels("a").observe(2); assertEquals(1.0, getLabelsCount("a").doubleValue(), .001); assertEquals(2.0, getLabelsSum("a").doubleValue(), .001); assertEquals(null, getLabelsCount("b")); assertEquals(null, getLabelsSum("b")); labels.labels("b").observe(3); assertEquals(1.0, getLabelsCount("a").doubleValue(), .001); assertEquals(2.0, getLabelsSum("a").doubleValue(), .001); assertEquals(1.0, getLabelsCount("b").doubleValue(), .001); assertEquals(3.0, getLabelsSum("b").doubleValue(), .001); }
public void observe(double amt) { noLabelsChild.observe(amt); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } Histogram(Builder b); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } Histogram(Builder b); static Builder build(String name, String help); static Builder build(); void observe(double amt); Timer startTimer(); double time(Runnable timeable); E time(Callable<E> timeable); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe(); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } Histogram(Builder b); static Builder build(String name, String help); static Builder build(); void observe(double amt); Timer startTimer(); double time(Runnable timeable); E time(Callable<E> timeable); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe();  }