MetricUtil

public class MetricUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.statsd.MetricUtil


Dienstprogrammklasse zum Abrufen von Messwerten aus gepushten StatsD-Konfigurationen.

Zusammenfassung

Öffentliche Konstruktoren

MetricUtil()

Öffentliche Methoden

static getEventMetricData(ITestDevice device, long configId)

Sie können mithilfe der StatsD-Konfigurations-ID StatsD-Ereignismesswerte vom Gerät abrufen.

static InputStreamSource getReportByteStream(ITestDevice device, long configId)

Statsd-Bericht als Bytestreamquelle abrufen

static StatsLog.StatsdStatsReport getStatsdMetadata(ITestDevice device)

Statsd-Metadaten abrufen, die auch Informationen zu Systemserverabstürzen enthalten

Öffentliche Konstruktoren

MetricUtil

public MetricUtil ()

Öffentliche Methoden

getEventMetricData

public static  getEventMetricData (ITestDevice device, 
                long configId)

Rufen Sie mithilfe der StatsD-Konfigurations-ID StatsD-Ereignismesswerte vom Gerät ab.

Parameter
device ITestDevice

configId long

Returns

Ausgabe
DeviceNotAvailableException

getReportByteStream

public static InputStreamSource getReportByteStream (ITestDevice device, 
                long configId)

Statsd-Bericht als Bytestreamquelle abrufen

Parameter
device ITestDevice

configId long

Returns
InputStreamSource

Ausgabe
DeviceNotAvailableException

getStatsdMetadata

public static StatsLog.StatsdStatsReport getStatsdMetadata (ITestDevice device)

Statsd-Metadaten abrufen, die auch Informationen zu Systemserverabstürzen enthalten

Parameter
device ITestDevice

Returns
StatsLog.StatsdStatsReport

Ausgabe
DeviceNotAvailableException
InvalidProtocolBufferException