Interface IMetrics
- All Known Implementing Classes:
IMetrics.ConsoleOutputMetrics,IMetrics.NoOpMetrics
public interface IMetrics
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interfacestatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptiondefault voidLog gauge of given metricdefault voidLog gauge of given metric<T> TgetRegistry(Class<T> cls) Get the underlying registry for this metricsdefault voidCount this metricsvoidCount this metricsdefault voidAdd time taken to given metricsdefault voidAdd time taken to given metricsvoidregisterCounter(String name, String help, String... labelNames) Register a countervoidregisterTimer(String name, String help, String... labelNames) Register a timer<T> TTime this callable
-
Method Details
-
getRegistry
Get the underlying registry for this metrics -
inc
Count this metrics -
inc
Count this metrics -
time
Time this callable -
observe
Add time taken to given metrics -
observe
Add time taken to given metrics -
gauge
Log gauge of given metric -
gauge
Log gauge of given metric -
registerCounter
Register a counter -
registerTimer
Register a timer
-