public class Statistic
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
description
A human-readable description of the Statistic.
|
static java.lang.String |
IMPLEMENTED_FOR |
long |
lastSampleTime
The time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
|
java.lang.String |
name
The name of this Statistic.
|
long |
startTime
The time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.
|
java.lang.String |
unit
The unit of measurement for this Statistic.
|
| Constructor and Description |
|---|
Statistic() |
| Modifier and Type | Method and Description |
|---|---|
void |
initializeFrom(java.lang.Object stat) |
java.lang.String |
toJsonString() |
public static final transient java.lang.String IMPLEMENTED_FOR
public java.lang.String description
public long lastSampleTime
public java.lang.String name
public long startTime
public java.lang.String unit
public java.lang.String toJsonString()
public void initializeFrom(java.lang.Object stat)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
stat - java.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException