public class MetricRegistry extends Object
| Constructor and Description |
|---|
MetricRegistry(MetricProvider metricProvider) |
| Modifier and Type | Method and Description |
|---|---|
<T> CallbackGauge |
callbackGauge(MetricId id,
T obj,
ToDoubleFunction<T> valueFunction)
|
Counter |
counter(MetricId id)
|
Gauge |
gauge(MetricId id)
|
void |
remove(String name)
Removes the metric with the given name.
|
Summary |
summary(MetricId id)
|
Timer |
timer(MetricId id)
|
public MetricRegistry(MetricProvider metricProvider)
public <T> CallbackGauge callbackGauge(MetricId id, T obj, ToDoubleFunction<T> valueFunction)
T - The type of the state object from which the gauge value is extracted.id - The MetricId.obj - State object used to compute a value.valueFunction - Function that produces an instantaneous gauge value from the state object.CallbackGauge metric.public void remove(String name)
name - the name of the metricCopyright © 2018 WSO2. All rights reserved.