MetricUtil

public class MetricUtil
extends Object

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


用於從推送的 StatsD 設定中提取指標的實用工具類別。

摘要

公用建構函式

MetricUtil()

公用方法

static getEventMetricData(ITestDevice device, long configId)

使用 statsd 設定 ID 從裝置取得 statsd 事件指標資料。

static InputStreamSource getReportByteStream(ITestDevice device, long configId)

以位元組串流來源取得 Statsd 報表

static StatsLog.StatsdStatsReport getStatsdMetadata(ITestDevice device)

取得 statsd 中繼資料,其中也包含系統伺服器當機資訊。

公用建構函式

MetricUtil

public MetricUtil ()

公用方法

getEventMetricData

public static  getEventMetricData (ITestDevice device, 
                long configId)

使用 statsd 設定 ID 從裝置取得 statsd 事件指標資料。

參數
device ITestDevice

configId long

傳回

擲回
DeviceNotAvailableException

getReportByteStream

public static InputStreamSource getReportByteStream (ITestDevice device, 
                long configId)

以位元組串流來源取得 Statsd 報表

參數
device ITestDevice

configId long

傳回
InputStreamSource

擲回
DeviceNotAvailableException

getStatsdMetadata

public static StatsLog.StatsdStatsReport getStatsdMetadata (ITestDevice device)

取得 statsd 中繼資料,其中也包含系統伺服器當機資訊。

參數
device ITestDevice

傳回
StatsLog.StatsdStatsReport

擲回
DeviceNotAvailableException
InvalidProtocolBufferException