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
FunctionTimerfor Dropwizard Metrics.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.FunctionTimer
FunctionTimer.Builder<T>
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.TimeUnitbaseTimeUnit()doublecount()com.codahale.metrics.TimergetDropwizardMeter()doubletotalTime(java.util.concurrent.TimeUnit unit)The total time of all occurrences of the timed event.-
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
getId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micrometer.core.instrument.FunctionTimer
mean, measure
-
-
-
-
Method Detail
-
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
public double totalTime(java.util.concurrent.TimeUnit unit)
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
public java.util.concurrent.TimeUnit baseTimeUnit()
- Specified by:
baseTimeUnitin interfaceFunctionTimer- Returns:
- The base time unit of the timer to which all published metrics will be scaled
-
-