Delen via


IMetricsListener Interface

Definition

Listens to metrics emitted from the system.

public interface class IMetricsListener
public interface IMetricsListener
type IMetricsListener = interface
Public Interface IMetricsListener

Properties

Name

Gets the name of the listener. This is used to identify the listener in the rules configuration.

Methods

GetMeasurementHandlers()

Called once to get the MeasurementHandlers that will be used to process measurements.

Initialize(IObservableInstrumentsSource)

Called once by the runtime to provide a IObservableInstrumentsSource used to pull for fresh metrics data.

InstrumentPublished(Instrument, Object)

Called when a new instrument is created and enabled by a matching rule.

MeasurementsCompleted(Instrument, Object)

Called when a instrument is disabled by the producer or a rules change.

Applies to