Package io.micrometer.core.instrument
Class MultiGauge.Row<T>
java.lang.Object
io.micrometer.core.instrument.MultiGauge.Row<T>
- Enclosing class:
MultiGauge
-
Method Summary
Modifier and TypeMethodDescriptionstatic MultiGauge.Row<Number> Create a row from tags and a number.static <T extends Number>
MultiGauge.Row<Supplier<T>> Create a row from tags and a number supplier.static <T> MultiGauge.Row<T> of(Tags uniqueTags, T obj, ToDoubleFunction<T> valueFunction) Create a row from tags, an object, and a value function.
-
Method Details
-
of
Create a row from tags, an object, and a value function.- Type Parameters:
T- object type- Parameters:
uniqueTags- tags that identify this rowobj- object from which the gauge value is readvalueFunction- function used to extract the gauge value- Returns:
- a row for use with
MultiGauge.register(Iterable)orMultiGauge.register(Iterable, boolean)
-
of
Create a row from tags and a number.- Parameters:
uniqueTags- tags that identify this rownumber- number used as the gauge value- Returns:
- a row for use with
MultiGauge.register(Iterable)orMultiGauge.register(Iterable, boolean)
-
of
public static <T extends Number> MultiGauge.Row<Supplier<T>> of(Tags uniqueTags, Supplier<T> valueFunction) Create a row from tags and a number supplier.- Type Parameters:
T- number type- Parameters:
uniqueTags- tags that identify this rowvalueFunction- supplier used to provide the gauge value- Returns:
- a row for use with
MultiGauge.register(Iterable)orMultiGauge.register(Iterable, boolean)
-