Modifier and Type | Class and Description |
---|---|
class |
CachedGauge<T>
A
Gauge implementation which caches its value for a period of time. |
class |
DerivativeGauge<F,T>
A gauge whose value is derived from the value of another gauge.
|
class |
RatioGauge
A gauge which measures the ratio of one value to another.
|
Modifier and Type | Method and Description |
---|---|
Gauge |
MetricRegistry.gauge(String name,
MetricRegistry.MetricSupplier<Gauge> supplier)
|
Gauge |
NoopMetricRegistry.gauge(String name,
MetricRegistry.MetricSupplier<Gauge> supplier)
|
Modifier and Type | Method and Description |
---|---|
SortedMap<String,Gauge> |
MetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.
|
SortedMap<String,Gauge> |
NoopMetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.
|
SortedMap<String,Gauge> |
MetricRegistry.getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.
|
SortedMap<String,Gauge> |
NoopMetricRegistry.getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.
|
Modifier and Type | Method and Description |
---|---|
void |
MetricRegistryListener.onGaugeAdded(String name,
Gauge<?> gauge)
Called when a
Gauge is added to the registry. |
void |
MetricRegistryListener.Base.onGaugeAdded(String name,
Gauge<?> gauge) |
Constructor and Description |
---|
DerivativeGauge(Gauge<F> base)
Creates a new derivative with the given base gauge.
|
Copyright © 2011. All rights reserved.