HostMetric
public
class
HostMetric
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.hostmetric.HostMetric |
Diese Klasse stellt ein zu erfassendes Hostmesswertbeispiel dar.
Zusammenfassung
Öffentliche Konstruktoren | |
---|---|
HostMetric(String name, long timestamp, long value,
Konstruktor. |
Öffentliche Methoden | |
---|---|
JSONObject
|
toJson()
Gibt ein JSON-Objekt für das Messwertbeispiel zurück. |
Öffentliche Konstruktoren
HostMetric
public HostMetric (String name, long timestamp, long value,data)
Konstruktor.
Parameter | |
---|---|
name |
String : Name des Messwerts |
timestamp |
long : Zeitstempel der Stichprobe |
value |
long : Wert der Stichprobe |
data |
: Daten, die mit der Stichprobe verknüpft sind |
Öffentliche Methoden
toJson
public JSONObject toJson ()
Gibt ein JSON-Objekt für das Messwertbeispiel zurück.
Returns | |
---|---|
JSONObject |
ein JSON-Objekt. |
Ausgabe | |
---|---|
|
org.json.JSONException |
JSONException |