Class DropwizardFunctionTimer<T>
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.dropwizard.DropwizardFunctionTimer<T>
- All Implemented Interfaces:
FunctionTimer, Meter
FunctionTimer for Dropwizard Metrics.-
Nested Class Summary
Nested classes/interfaces inherited from interface FunctionTimer
FunctionTimer.Builder<T>Nested classes/interfaces inherited from interface Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T>, Meter.Type -
Method Summary
Modifier and TypeMethodDescriptiondoublecount()com.codahale.metrics.TimerdoubleThe total time of all occurrences of the timed event.Methods inherited from class AbstractMeter
equals, getId, hashCodeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FunctionTimer
mean, measure
-
Method Details
-
getDropwizardMeter
public com.codahale.metrics.Timer getDropwizardMeter() -
count
public double count()- Specified by:
countin interfaceFunctionTimer- Returns:
- The total number of occurrences of the timed event.
-
totalTime
Description copied from interface:FunctionTimerThe total time of all occurrences of the timed event.- Specified by:
totalTimein interfaceFunctionTimer- Parameters:
unit- The base unit of time to scale the total to.- Returns:
- The total time of all occurrences of the timed event.
-
baseTimeUnit
- Specified by:
baseTimeUnitin interfaceFunctionTimer- Returns:
- The base time unit of the timer to which all published metrics will be scaled
-