public class MetricsGaugeData extends java.lang.Object implements ComponentData
Allows metrics to supply data to a gauge.js component in a form the component will like.
Constructor and Description |
---|
MetricsGaugeData(com.codahale.metrics.Metric metric,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
void |
setFloatFormat(java.text.DecimalFormat floatFormat) |
void |
setIntegerFormat(java.text.DecimalFormat format) |
JSONObject |
toJson() |
public MetricsGaugeData(@Nonnull com.codahale.metrics.Metric metric, java.lang.String description)
public void setIntegerFormat(java.text.DecimalFormat format)
public void setFloatFormat(java.text.DecimalFormat floatFormat)
public JSONObject toJson() throws JSONException
toJson
in interface ComponentData
JSONException