语言

IMetricsListener 接口

定义

侦听从系统发出的指标。

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

属性

名称 说明
Name

获取侦听器的名称。 这用于标识规则配置中的侦听器。

方法

名称 说明
GetMeasurementHandlers()

调用一次以获取 MeasurementHandlers 将用于处理度量的值。

Initialize(IObservableInstrumentsSource)

运行时调用一次,以提供 IObservableInstrumentsSource 用于提取新指标数据的方法。

InstrumentPublished(Instrument, Object)

当通过匹配规则创建新仪器并启用时调用。

MeasurementsCompleted(Instrument, Object)

当生成者或规则更改禁用检测时调用。

适用于