EmailHostHealthAgent

public class EmailHostHealthAgent
extends Object implements IHostHealthAgent

java.lang.Object
   ↳ com.android.tradefed.util.hostmetric.EmailHostHealthAgent


A IHostHealthAgent implementation to send email from Host monitor reports

Summary

Public constructors

EmailHostHealthAgent()

Public methods

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

Emits a value for a metric name.

void flush()

Flushes enqueued metrics.

Public constructors

EmailHostHealthAgent

EmailHostHealthAgent ()

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.