Class IMetrics.ConsoleOutputMetrics

java.lang.Object
io.gitbub.devlibx.easy.helper.metrics.IMetrics.ConsoleOutputMetrics
All Implemented Interfaces:
IMetrics
Enclosing interface:
IMetrics

public static class IMetrics.ConsoleOutputMetrics extends Object implements IMetrics
  • Constructor Details

    • ConsoleOutputMetrics

      public ConsoleOutputMetrics()
  • Method Details

    • getRegistry

      public <T> T getRegistry(Class<T> cls)
      Description copied from interface: IMetrics
      Get the underlying registry for this metrics
      Specified by:
      getRegistry in interface IMetrics
    • inc

      public void inc(String name, String... labels)
      Description copied from interface: IMetrics
      Count this metrics
      Specified by:
      inc in interface IMetrics
    • time

      public <T> T time(String name, Callable<T> callable, String... labels)
      Description copied from interface: IMetrics
      Time this callable
      Specified by:
      time in interface IMetrics
    • observe

      public void observe(String name, double amt)
      Description copied from interface: IMetrics
      Add time taken to given metrics
      Specified by:
      observe in interface IMetrics
    • registerCounter

      public void registerCounter(String name, String help, String... labelNames)
      Description copied from interface: IMetrics
      Register a counter
      Specified by:
      registerCounter in interface IMetrics
    • registerTimer

      public void registerTimer(String name, String help, String... labelNames)
      Description copied from interface: IMetrics
      Register a timer
      Specified by:
      registerTimer in interface IMetrics