Package io.dropwizard.metrics5
Class RatioGauge
java.lang.Object
io.dropwizard.metrics5.RatioGauge
A gauge which measures the ratio of one value to another.
If the denominator is zero, not a number, or infinite, the resulting ratio is not a number.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A ratio of one quantity to another. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RatioGauge.Ratio
getRatio()
Returns theRatioGauge.Ratio
which is the gauge's current value.getValue()
Returns the metric's current value.
-
Constructor Details
-
RatioGauge
public RatioGauge()
-
-
Method Details
-
getRatio
Returns theRatioGauge.Ratio
which is the gauge's current value.- Returns:
- the
RatioGauge.Ratio
which is the gauge's current value
-
getValue
Description copied from interface:Gauge
Returns the metric's current value.
-