IHostHealthAgent

public interface IHostHealthAgent

com.android.tradefed.util.hostmetric.IHostHealthAgent
Known Indirect Subclasses
EmailHostHealthAgent A IHostHealthAgent implementation to send email from Host monitor reports  


An interface to emit host or device metrics.

Summary

Public methods

abstract void emitValue(String name, long value, Map<String, String> data)

Emits a value for a metric name.

abstract void flush()

Flushes enqueued metrics.

Public methods

emitValue

void emitValue (String name, 
                long value, 
                Map<String, String> data)

Emits a value for a metric name. The value gets enqueued and uploaded when flush() gets called.

Parameters
name String: a metric name

value long: a metric value

data Map: data associated with the metric value

flush

void flush ()

Flushes enqueued metrics.