共用方式為


InstrumentRule Class

Definition

Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified parameters match anything.

public ref class InstrumentRule
public class InstrumentRule
type InstrumentRule = class
Public Class InstrumentRule
Inheritance
InstrumentRule

Remarks

The most specific rule that matches a given instrument will be used. The priority of parameters is as follows:

- MeterName, either an exact match, or the longest prefix match. See Meter.Name.

- InstrumentName, an exact match. Instrument.Name.

- ListenerName, an exact match. IMetricsListener.Name.

- Scopes

Constructors

InstrumentRule(String, String, String, MeterScope, Boolean)

Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified parameters match anything.

Properties

Enable

Gets a value that indicates whether the instrument should be enabled for the listener.

InstrumentName

Gets the Instrument.Name, an exact match.

ListenerName

Gets the IMetricsListener.Name, an exact match.

MeterName

Gets the Meter.Name, either an exact match or the longest prefix match. Only full segment matches are considered.

Scopes

Gets the MeterScope.

Applies to