MetricUtil

public class MetricUtil
extends Object

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


Utility-Klasse zum Abrufen von Metriken aus gepushten Statsd-Konfigurationen.

Zusammenfassung

Öffentliche Bauträger

MetricUtil ()

Öffentliche Methoden

static getEventMetricData ( ITestDevice device, long configId)

Rufen Sie statsd-Ereignismetrikdaten vom Gerät mithilfe der statsd-Konfigurations-ID ab.

static InputStreamSource getReportByteStream ( ITestDevice device, long configId)

Rufen Sie den Statsd-Bericht als Byte-Stream-Quelle ab

static StatsLog.StatsdStatsReport getStatsdMetadata ( ITestDevice device)

Rufen Sie Statsd-Metadaten ab, die auch Informationen zum Systemserverabsturz enthalten.

Öffentliche Bauträger

MetricUtil

public MetricUtil ()

Öffentliche Methoden

getEventMetricData

public static  getEventMetricData (ITestDevice device, 
                long configId)

Rufen Sie statsd-Ereignismetrikdaten vom Gerät mithilfe der statsd-Konfigurations-ID ab.

Parameter
device ITestDevice

configId long

Kehrt zurück

Würfe
DeviceNotAvailableException

getReportByteStream

public static InputStreamSource getReportByteStream (ITestDevice device, 
                long configId)

Rufen Sie den Statsd-Bericht als Byte-Stream-Quelle ab

Parameter
device ITestDevice

configId long

Kehrt zurück
InputStreamSource

Würfe
DeviceNotAvailableException

getStatsdMetadata

public static StatsLog.StatsdStatsReport getStatsdMetadata (ITestDevice device)

Rufen Sie Statsd-Metadaten ab, die auch Informationen zum Systemserverabsturz enthalten.

Parameter
device ITestDevice

Kehrt zurück
StatsLog.StatsdStatsReport

Würfe
DeviceNotAvailableException
InvalidProtocolBufferException