Class DescriptiveRatioGauge
java.lang.Object
com.inductiveautomation.ignition.gateway.metrics.DescriptiveRatioGauge
- All Implemented Interfaces:
com.codahale.metrics.Gauge<Double>,com.codahale.metrics.Metric,DescriptiveMetric
public abstract class DescriptiveRatioGauge
extends Object
implements com.codahale.metrics.Gauge<Double>, DescriptiveMetric
This class is mostly a copy of the
RatioGauge from the Metrics library. The difference is that the Ratio
itself and its numerator and denominator are exposed so that the gauge can be rendered as a radio of X over Y
rather than just as a number.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA ratio of one quantity to another. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDescription(Locale locale) A short description of what this metric represents.abstract DescriptiveRatioGauge.RatiogetRatio()A short string representing the units of this metric.getValue()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.metrics.DescriptiveMetric
getDescription, getUnits
-
Constructor Details
-
DescriptiveRatioGauge
-
-
Method Details
-
getDescription
Description copied from interface:DescriptiveMetricA short description of what this metric represents. For example "JVM Heap Size" or "Thread Count" or "Subsystem X script executions"- Specified by:
getDescriptionin interfaceDescriptiveMetric
-
getUnits
Description copied from interface:DescriptiveMetricA short string representing the units of this metric. For example "MB" or "threads" or "executions"- Specified by:
getUnitsin interfaceDescriptiveMetric
-
getRatio
- Returns:
- the Ratio which is the gauge's current value
-
getValue
- Specified by:
getValuein interfacecom.codahale.metrics.Gauge<Double>
-