public static interface MeterRegistry.More
Modifier and Type | Method and Description |
---|---|
<T> TimeGauge |
timeGauge(Meter.Id id,
T obj,
TimeUnit timeFunctionUnit,
ToDoubleFunction<T> timeFunction)
A gauge that tracks a time value, to be scaled to the monitoring system's base time unit.
|
<T> TimeGauge |
timeGauge(String name,
Iterable<Tag> tags,
T obj,
TimeUnit timeFunctionUnit,
ToDoubleFunction<T> timeFunction)
A gauge that tracks a time value, to be scaled to the monitoring system's base time unit.
|
<T> TimeGauge timeGauge(String name, Iterable<Tag> tags, T obj, TimeUnit timeFunctionUnit, ToDoubleFunction<T> timeFunction)
name
- Name of the gauge being registered.tags
- Sequence of dimensions for breaking down the name.obj
- State object used to compute a value.timeFunctionUnit
- The base unit of time produced by the total time function.timeFunction
- Function that produces a time value from the state object. This value may increase and decrease over time.<T> TimeGauge timeGauge(Meter.Id id, T obj, TimeUnit timeFunctionUnit, ToDoubleFunction<T> timeFunction)
id
- The identifier for this time gauge.obj
- State object used to compute a value.timeFunctionUnit
- The base unit of time produced by the total time function.timeFunction
- Function that produces a time value from the state object. This value may increase and decrease over time.Copyright 2010-2022 ForgeRock AS.