Uses of Interface
io.dropwizard.metrics5.Gauge
-
Uses of Gauge in io.dropwizard.metrics5
Subinterfaces of Gauge in io.dropwizard.metrics5Modifier and TypeInterfaceDescriptioninterface
Similar toGauge
, but metric value is updated via callingSettableGauge.setValue(T)
instead.Classes in io.dropwizard.metrics5 that implement GaugeModifier and TypeClassDescriptionclass
CachedGauge<T>
AGauge
implementation which caches its value for a period of time.class
Similar toGauge
, but metric value is updated via callingDefaultSettableGauge.setValue(T)
instead.class
DerivativeGauge<F,
T> A gauge whose value is derived from the value of another gauge.class
A gauge which measures the ratio of one value to another.Methods in io.dropwizard.metrics5 with type parameters of type GaugeModifier and TypeMethodDescription<T extends Gauge>
TMetricRegistry.gauge
(MetricName name) Return theGauge
registered under this name; or create and register a newSettableGauge
if none is registered.<T extends Gauge>
TMetricRegistry.gauge
(MetricName name, MetricRegistry.MetricSupplier<T> supplier) <T extends Gauge>
TNoopMetricRegistry.gauge
(MetricName name) Return theGauge
registered under this name; or create and register a newSettableGauge
if none is registered.<T extends Gauge>
TNoopMetricRegistry.gauge
(MetricName name, MetricRegistry.MetricSupplier<T> supplier) Methods in io.dropwizard.metrics5 that return GaugeModifier and TypeMethodDescription<T> Gauge<T>
MetricRegistry.registerGauge
(MetricName name, Gauge<T> metric) Given aGauge
, registers it under the given name and returns it<T> Gauge<T>
MetricRegistry.registerGauge
(String name, Gauge<T> metric) Methods in io.dropwizard.metrics5 that return types with arguments of type GaugeModifier and TypeMethodDescriptionSortedMap<MetricName,
Gauge<?>> MetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.SortedMap<MetricName,
Gauge<?>> MetricRegistry.getGauges
(MetricFilter filter) Returns a map of all the gauges in the registry and their names which match the given filter.SortedMap<MetricName,
Gauge<?>> NoopMetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their names.SortedMap<MetricName,
Gauge<?>> NoopMetricRegistry.getGauges
(MetricFilter filter) Returns a map of all the gauges in the registry and their names which match the given filter.Methods in io.dropwizard.metrics5 with parameters of type GaugeModifier and TypeMethodDescriptionvoid
MetricRegistryListener.Base.onGaugeAdded
(MetricName name, Gauge<?> gauge) void
MetricRegistryListener.onGaugeAdded
(MetricName name, Gauge<?> gauge) Called when aGauge
is added to the registry.<T> Gauge<T>
MetricRegistry.registerGauge
(MetricName name, Gauge<T> metric) Given aGauge
, registers it under the given name and returns it<T> Gauge<T>
MetricRegistry.registerGauge
(String name, Gauge<T> metric) Method parameters in io.dropwizard.metrics5 with type arguments of type GaugeModifier and TypeMethodDescriptionvoid
ConsoleReporter.report
(SortedMap<MetricName, Gauge<?>> gauges, SortedMap<MetricName, Counter> counters, SortedMap<MetricName, Histogram> histograms, SortedMap<MetricName, Meter> meters, SortedMap<MetricName, Timer> timers) void
CsvReporter.report
(SortedMap<MetricName, Gauge<?>> gauges, SortedMap<MetricName, Counter> counters, SortedMap<MetricName, Histogram> histograms, SortedMap<MetricName, Meter> meters, SortedMap<MetricName, Timer> timers) abstract void
ScheduledReporter.report
(SortedMap<MetricName, Gauge<?>> gauges, SortedMap<MetricName, Counter> counters, SortedMap<MetricName, Histogram> histograms, SortedMap<MetricName, Meter> meters, SortedMap<MetricName, Timer> timers) Called periodically by the polling thread.void
Slf4jReporter.report
(SortedMap<MetricName, Gauge<?>> gauges, SortedMap<MetricName, Counter> counters, SortedMap<MetricName, Histogram> histograms, SortedMap<MetricName, Meter> meters, SortedMap<MetricName, Timer> timers) Constructors in io.dropwizard.metrics5 with parameters of type GaugeModifierConstructorDescriptionprotected
DerivativeGauge
(Gauge<F> base) Creates a new derivative with the given base gauge.