MetricsBuilderExtensions.DisableMetrics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DisableMetrics(IMetricsBuilder, String) |
Disables all Instrument's for the given meter, for all registered IMetricsListener's. |
DisableMetrics(MetricsOptions, String) |
Disables all Instrument's for the given meter, for all registered IMetricsListener's. |
DisableMetrics(IMetricsBuilder, String, String, String, MeterScope) |
Disables a specified Instrument for the given Meter and IMetricsListener. |
DisableMetrics(MetricsOptions, String, String, String, MeterScope) |
Disables a specified Instrument for the given Meter and IMetricsListener. |
DisableMetrics(IMetricsBuilder, String)
Disables all Instrument's for the given meter, for all registered IMetricsListener's.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ DisableMetrics(Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ builder, System::String ^ meterName);
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder DisableMetrics (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder, string? meterName);
static member DisableMetrics : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder * string -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
<Extension()>
Public Function DisableMetrics (builder As IMetricsBuilder, meterName As String) As IMetricsBuilder
Parameters
- builder
- IMetricsBuilder
The IMetricsBuilder.
Returns
The original IMetricsBuilder for chaining.
Applies to
DisableMetrics(MetricsOptions, String)
Disables all Instrument's for the given meter, for all registered IMetricsListener's.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Diagnostics::Metrics::MetricsOptions ^ DisableMetrics(Microsoft::Extensions::Diagnostics::Metrics::MetricsOptions ^ options, System::String ^ meterName);
public static Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions DisableMetrics (this Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions options, string? meterName);
static member DisableMetrics : Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions * string -> Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions
<Extension()>
Public Function DisableMetrics (options As MetricsOptions, meterName As String) As MetricsOptions
Parameters
- options
- MetricsOptions
The MetricsOptions.
Returns
The original MetricsOptions for chaining.
Applies to
DisableMetrics(IMetricsBuilder, String, String, String, MeterScope)
Disables a specified Instrument for the given Meter and IMetricsListener.
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder DisableMetrics (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder, string? meterName, string? instrumentName = default, string? listenerName = default, Microsoft.Extensions.Diagnostics.Metrics.MeterScope scopes = Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Global | Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Local);
static member DisableMetrics : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder * string * string * string * Microsoft.Extensions.Diagnostics.Metrics.MeterScope -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
<Extension()>
Public Function DisableMetrics (builder As IMetricsBuilder, meterName As String, Optional instrumentName As String = Nothing, Optional listenerName As String = Nothing, Optional scopes As MeterScope = Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Global | Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Local) As IMetricsBuilder
Parameters
- builder
- IMetricsBuilder
The IMetricsBuilder.
- listenerName
- String
The IMetricsListener.Name. A null value matches all listeners.
- scopes
- MeterScope
Indicates which MeterScope's to consider. Default to all scopes.
Returns
The original IMetricsBuilder for chaining.
Applies to
DisableMetrics(MetricsOptions, String, String, String, MeterScope)
Disables a specified Instrument for the given Meter and IMetricsListener.
public static Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions DisableMetrics (this Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions options, string? meterName, string? instrumentName = default, string? listenerName = default, Microsoft.Extensions.Diagnostics.Metrics.MeterScope scopes = Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Global | Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Local);
static member DisableMetrics : Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions * string * string * string * Microsoft.Extensions.Diagnostics.Metrics.MeterScope -> Microsoft.Extensions.Diagnostics.Metrics.MetricsOptions
<Extension()>
Public Function DisableMetrics (options As MetricsOptions, meterName As String, Optional instrumentName As String = Nothing, Optional listenerName As String = Nothing, Optional scopes As MeterScope = Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Global | Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Local) As MetricsOptions
Parameters
- options
- MetricsOptions
The MetricsOptions.
- listenerName
- String
The IMetricsListener.Name. A null value matches all listeners.
- scopes
- MeterScope
Indicates which MeterScope's to consider. Default to all scopes.
Returns
The original MetricsOptions for chaining.