Package io.micrometer.core.instrument
Interface FunctionCounter
- All Superinterfaces:
Meter
- All Known Implementing Classes:
CompositeFunctionCounter,CumulativeFunctionCounter,DropwizardFunctionCounter,NoopFunctionCounter,StepFunctionCounter
A counter that tracks a monotonically increasing function.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent builder for function counters.Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FunctionCounter.Builder<T> builder(String name, T obj, ToDoubleFunction<T> f) doublecount()default Iterable<Measurement> measure()Get a set of measurements.
-
Method Details
-
builder
-
count
double count()- Returns:
- The cumulative count since this counter was created.
-
measure
Description copied from interface:MeterGet a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.
-