Package org.commonjava.o11yphant.metrics
Interface MetricsManager
-
public interface MetricsManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccumulate(String name, double elapsed)voidaddGauges(Class<?> className, String method, Map<String,Gauge<Integer>> gauges)booleancheckMetered()HistogramgetHistogram(String name)MetergetMeter(String name)booleanisMetered(Supplier<Boolean> meteringOverride)voidmark(Collection<String> meters)voidreset()Timer.ContextstartTimer(String name)longstopTimer(String name)voidstopTimers(Map<String,Timer.Context> timers)<T> TwrapWithStandardMetrics(Supplier<T> method, Supplier<String> classifier)
-
-
-
Method Detail
-
reset
void reset()
-
startTimer
Timer.Context startTimer(String name)
-
stopTimer
long stopTimer(String name)
-
accumulate
void accumulate(String name, double elapsed)
-
wrapWithStandardMetrics
<T> T wrapWithStandardMetrics(Supplier<T> method, Supplier<String> classifier)
-
checkMetered
boolean checkMetered()
-
stopTimers
void stopTimers(Map<String,Timer.Context> timers)
-
mark
void mark(Collection<String> meters)
-
-