IHostHealthAgent
public
interface
IHostHealthAgent
| com.android.tradefed.util.hostmetric.IHostHealthAgent |
An interface to emit host or device metrics.
Summary
Public methods | |
|---|---|
abstract
void
|
emitValue(String name, long value,
Emits a value for a metric name. |
abstract
void
|
flush()
Flushes enqueued metrics. |
Public methods
emitValue
public abstract void emitValue (String name,
long value,
data) Emits a value for a metric name. The value gets enqueued and uploaded when
IHostHealthAgent.flush gets called.
| Parameters | |
|---|---|
name |
String: a metric name |
value |
long: a metric value |
data |
: data associated with the metric value |
flush
public abstract void flush ()
Flushes enqueued metrics.