@Test public void testLeLabelThrows() { thrown.expect(IllegalStateException.class); thrown.expectMessage("Histogram cannot have a label named 'le'."); Histogram.build().name("labels").help("help").labelNames("le").create(); }
public static Builder build(String name, String help) { return new Builder().name(name).help(help); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public static Builder build(String name, String help) { return new Builder().name(name).help(help); } }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public static Builder build(String name, String help) { return new Builder().name(name).help(help); } Histogram(Builder b); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public static Builder build(String name, String help) { return new Builder().name(name).help(help); } 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 static Builder build(String name, String help) { return new Builder().name(name).help(help); } 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();  }