다음을 통해 공유


InstrumentRule(String, String, String, MeterScope, Boolean) 생성자

정의

InstrumentRule 클래스의 새 인스턴스를 초기화합니다.

public:
 InstrumentRule(System::String ^ meterName, System::String ^ instrumentName, System::String ^ listenerName, Microsoft::Extensions::Diagnostics::Metrics::MeterScope scopes, bool enable);
public InstrumentRule (string? meterName, string? instrumentName, string? listenerName, Microsoft.Extensions.Diagnostics.Metrics.MeterScope scopes, bool enable);
new Microsoft.Extensions.Diagnostics.Metrics.InstrumentRule : string * string * string * Microsoft.Extensions.Diagnostics.Metrics.MeterScope * bool -> Microsoft.Extensions.Diagnostics.Metrics.InstrumentRule
Public Sub New (meterName As String, instrumentName As String, listenerName As String, scopes As MeterScope, enable As Boolean)

매개 변수

meterName
String

Name 또는 접두사입니다.

instrumentName
String

Name

listenerName
String

Name

scopes
MeterScope

고려할 범위를 지정하는 열거형 값의 비트 조합입니다.

enable
Boolean

true이 수신기에 대해 일치하는 계측을 사용하도록 설정하려면 이고, 그렇지 않으면 입니다 false.

설명

지정된 계측과 일치하는 가장 구체적인 규칙이 사용됩니다. 매개 변수의 우선 순위는 다음과 같습니다.

- MeterName, 정확한 일치 또는 가장 긴 접두사 일치 Name을 참조하세요.

- InstrumentName, 정확히 일치합니다. Name.

- ListenerName, 정확히 일치합니다. Name.

- 범위

적용 대상