Class DropwizardFunctionTimer<T>

java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.dropwizard.DropwizardFunctionTimer<T>
All Implemented Interfaces:
FunctionTimer, Meter

public class DropwizardFunctionTimer<T> extends AbstractMeter implements FunctionTimer
FunctionTimer for Dropwizard Metrics.
  • Method Details

    • getDropwizardMeter

      public com.codahale.metrics.Timer getDropwizardMeter()
    • count

      public double count()
      Specified by:
      count in interface FunctionTimer
      Returns:
      The total number of occurrences of the timed event.
    • totalTime

      public double totalTime(TimeUnit unit)
      Description copied from interface: FunctionTimer
      The total time of all occurrences of the timed event.
      Specified by:
      totalTime in interface FunctionTimer
      Parameters:
      unit - The base unit of time to scale the total to.
      Returns:
      The total time of all occurrences of the timed event.
    • baseTimeUnit

      public TimeUnit baseTimeUnit()
      Specified by:
      baseTimeUnit in interface FunctionTimer
      Returns:
      The base time unit of the timer to which all published metrics will be scaled