Class DescriptiveRatioGauge
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.metrics.DescriptiveRatioGauge
 
- 
- All Implemented Interfaces:
- com.codahale.metrics.Gauge<java.lang.Double>,- com.codahale.metrics.Metric,- DescriptiveMetric
 
 public abstract class DescriptiveRatioGauge extends java.lang.Object implements com.codahale.metrics.Gauge<java.lang.Double>, DescriptiveMetric This class is mostly a copy of theRatioGaugefrom 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 SummaryNested Classes Modifier and Type Class Description static classDescriptiveRatioGauge.RatioA ratio of one quantity to another.
 - 
Constructor SummaryConstructors Constructor Description DescriptiveRatioGauge(java.util.function.Function<java.util.Locale,java.lang.String> description, java.util.function.Function<java.util.Locale,java.lang.String> units)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription(java.util.Locale locale)A short description of what this metric represents.abstract DescriptiveRatioGauge.RatiogetRatio()java.lang.StringgetUnits(java.util.Locale locale)A short string representing the units of this metric.java.lang.DoublegetValue()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.gateway.metrics.DescriptiveMetricgetDescription, getUnits
 
- 
 
- 
- 
- 
Method Detail- 
getDescriptionpublic java.lang.String getDescription(java.util.Locale locale) 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 interface- DescriptiveMetric
 
 - 
getUnitspublic java.lang.String getUnits(java.util.Locale locale) Description copied from interface:DescriptiveMetricA short string representing the units of this metric. For example "MB" or "threads" or "executions"- Specified by:
- getUnitsin interface- DescriptiveMetric
 
 - 
getRatiopublic abstract DescriptiveRatioGauge.Ratio getRatio() - Returns:
- the Ratio which is the gauge's current value
 
 - 
getValuepublic java.lang.Double getValue() - Specified by:
- getValuein interface- com.codahale.metrics.Gauge<java.lang.Double>
 
 
- 
 
-