MetricsListener class abstract interface

Represents a type used to listen to metrics emitted from the system.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the listener. This is used to identify the listener in the rules configuration.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMeasurementHandlers() MeasurementHandlers
Called once to get the MeasurementHandlers that will be used to process measurements.
initialize(ObservableInstrumentsSource source) → void
Called once by the runtime to provide a ObservableInstrumentsSource used to pull for fresh metrics data.
instrumentPublished(Instrument instrument) → (bool, Object?)
Called when a new instrument is created and enabled by a matching rule.
measurementsCompleted(Instrument instrument, Object? userState) → void
Called when a instrument is disabled by the producer or a rules change.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited