Class IMetrics.ConsoleOutputMetrics
java.lang.Object
io.gitbub.devlibx.easy.helper.metrics.IMetrics.ConsoleOutputMetrics
- All Implemented Interfaces:
IMetrics
- Enclosing interface:
IMetrics
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.gitbub.devlibx.easy.helper.metrics.IMetrics
IMetrics.ConsoleOutputMetrics, IMetrics.IMetricsLogger, IMetrics.InvalidRegistryTypeFoundException, IMetrics.MetricsLogger, IMetrics.NoOpMetrics, IMetrics.NoOpMetricsLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetRegistry(Class<T> cls) Get the underlying registry for this metricsvoidCount this metricsvoidAdd 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
-
Constructor Details
-
ConsoleOutputMetrics
public ConsoleOutputMetrics()
-
-
Method Details
-
getRegistry
Description copied from interface:IMetricsGet the underlying registry for this metrics- Specified by:
getRegistryin interfaceIMetrics
-
inc
Description copied from interface:IMetricsCount this metrics -
time
Description copied from interface:IMetricsTime this callable -
observe
Description copied from interface:IMetricsAdd time taken to given metrics -
registerCounter
Description copied from interface:IMetricsRegister a counter- Specified by:
registerCounterin interfaceIMetrics
-
registerTimer
Description copied from interface:IMetricsRegister a timer- Specified by:
registerTimerin interfaceIMetrics
-