HostMetric

public class HostMetric
extends Object

java.lang.Object
com.android.tradefed.util.hostmetric.HostMetric


Questa classe rappresenta un campione di metriche host da segnalare.

Riepilogo

Costruttori pubblici

HostMetric(String name, long timestamp, long value, Map<String, String> data)

Costruttore.

Metodi pubblici

JSONObject toJson()

Restituisce un oggetto JSON per il campione di metriche.

Costruttori pubblici

HostMetric

public HostMetric (String name, 
                long timestamp, 
                long value, 
                Map<String, String> data)

Costruttore.

Parametri
name String: nome della metrica

timestamp long: timestamp del campione

value long: valore del campione

data Map: dati associati al campione

Metodi pubblici

toJson

public JSONObject toJson ()

Restituisce un oggetto JSON per il campione di metriche.

Resi
JSONObject un oggetto JSON.

Genera
org.json.JSONException
JSONException