Class MetricsGaugeData
- java.lang.Object
 - 
- com.inductiveautomation.ignition.gateway.web.components.react.MetricsGaugeData
 
 
- 
- All Implemented Interfaces:
 ComponentData
public class MetricsGaugeData extends java.lang.Object implements ComponentData
Filename: MetricsGaugeData.java Created on Apr 11, 2016 Author: Kathy Applebaum Copyright Inductive Automation 2016 Project: gateway-apiAllows metrics to supply data to a gauge.js component in a form the component will like.
 
- 
- 
Constructor Summary
Constructors Constructor Description MetricsGaugeData(com.codahale.metrics.Metric metric, java.lang.String description) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetFloatFormat(java.text.DecimalFormat floatFormat)voidsetIntegerFormat(java.text.DecimalFormat format)JSONObjecttoJson() 
 - 
 
- 
- 
Method Detail
- 
setIntegerFormat
public void setIntegerFormat(java.text.DecimalFormat format)
 
- 
setFloatFormat
public void setFloatFormat(java.text.DecimalFormat floatFormat)
 
- 
toJson
public JSONObject toJson() throws JSONException
- Specified by:
 toJsonin interfaceComponentData- Throws:
 JSONException
 
 - 
 
 -