HostMetric
public
class
HostMetric
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.hostmetric.HostMetric |
Cette classe représente un échantillon de métrique d'hôte à signaler.
Résumé
Constructeurs publics | |
|---|---|
HostMetric(String name, long timestamp, long value, Map<String, String> data)
Constructeur. |
|
Méthodes publiques | |
|---|---|
JSONObject
|
toJson()
Renvoie un objet JSON pour l'échantillon de métrique. |
Constructeurs publics
HostMetric
public HostMetric (String name,
long timestamp,
long value,
Map<String, String> data)Constructeur.
| Paramètres | |
|---|---|
name |
String : nom de la métrique |
timestamp |
long : code temporel de l'échantillon |
value |
long : valeur de l'échantillon |
data |
Map : données associées à l'échantillon. |
Méthodes publiques
toJson
public JSONObject toJson ()
Renvoie un objet JSON pour l'échantillon de métrique.
| Renvoie | |
|---|---|
JSONObject |
un objet JSON. |
| Génère | |
|---|---|
|
org.json.JSONException |
JSONException |
|