Listener methods
This is the collection of listener methods within the Metrics
interface. There are only three listener methods, addMetricIdsListener
, addMetricListener
, and delListener
.
addMetricIdsListener
The addMetricIdsListener
method registers a listener function with the Metrics
object that will be called whenever a Metric
definition is added or removed.
addMetricListener
The addMetricListener
method registers a listener function with the Metrics
object that will be called whenever the value of a specified Metric
changes.
delListener
The delListener
method removes a listener that was previously added to the Metrics
object.