public interface CallbackGauge extends Metric
| Modifier and Type | Interface and Description |
|---|---|
static class |
CallbackGauge.Builder<T>
Builder for
CallbackGauges. |
| Modifier and Type | Method and Description |
|---|---|
static <T> CallbackGauge.Builder<T> |
builder(String name,
T obj,
ToDoubleFunction<T> valueFunction)
Create new builder for
CallbackGauge. |
double |
get() |
static <T> CallbackGauge.Builder<T> builder(String name, T obj, ToDoubleFunction<T> valueFunction)
CallbackGauge.T - The type of the state object from which the gauge value is extracted.name - The name of the metric.obj - State object used to compute a value.valueFunction - Function that produces an instantaneous gauge value from the state object.CallbackGauge.double get()
Copyright © 2018 WSO2. All rights reserved.