Package com.codahale.metrics
Class RatioGauge
java.lang.Object
com.codahale.metrics.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 classA ratio of one quantity to another. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RatioGauge.RatiogetRatio()Returns theRatioGauge.Ratiowhich is the gauge's current value.getValue()Returns the metric's current value.
-
Constructor Details
-
RatioGauge
public RatioGauge()
-
-
Method Details
-
getRatio
Returns theRatioGauge.Ratiowhich is the gauge's current value.- Returns:
- the
RatioGauge.Ratiowhich is the gauge's current value
-
getValue
Description copied from interface:GaugeReturns the metric's current value.
-