public class Metric
extends java.lang.Object
Metric value.Metrics| Constructor and Description |
|---|
Metric(java.lang.String metricName,
java.lang.Number value)
Constructs a
Metric instance with the specified metricName and
value. |
Metric(java.lang.String metricName,
java.lang.Number value,
java.lang.String unit)
Constructs a
Metric instance with the specified metricName, value
, and unit. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMetricName()
Returns the name of the
Metric. |
long |
getTimestamp()
Returns the timestamp of the
Metric. |
java.lang.String |
getUnit()
Returns the unit of the
Metric. |
java.lang.Number |
getValue()
Returns the value of the
Metric. |
java.lang.String |
toString() |
public Metric(java.lang.String metricName,
java.lang.Number value)
Metric instance with the specified metricName and
value.metricName - the metric namevalue - the metric valuepublic Metric(java.lang.String metricName,
java.lang.Number value,
java.lang.String unit)
Metric instance with the specified metricName, value
, and unit.metricName - the metric namevalue - the metric valueunit - the metric unitpublic java.lang.String getMetricName()
Metric.public java.lang.Number getValue()
Metric.public java.lang.String getUnit()
Metric.public long getTimestamp()
Metric.public java.lang.String toString()
toString in class java.lang.Object