Share via


MetricsClientBuilderExtensions.AddMetricsClient Method

Definition

Overloads

AddMetricsClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a MetricsClient instance.

AddMetricsClient<TBuilder>(TBuilder, Uri)

Registers a MetricsClient instance.

AddMetricsClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
MetricsClientBuilderExtensions.cs

Registers a MetricsClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Monitor.Query.MetricsClient,Azure.Monitor.Query.MetricsClientOptions> AddMetricsClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddMetricsClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Monitor.Query.MetricsClient, Azure.Monitor.Query.MetricsClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddMetricsClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of MetricsClient, MetricsClientOptions)

Type Parameters

TBuilder
TConfiguration

Parameters

builder
TBuilder

The builder to register with.

configuration
TConfiguration

The configuration values.

Returns

Applies to

AddMetricsClient<TBuilder>(TBuilder, Uri)

Source:
MetricsClientBuilderExtensions.cs

Registers a MetricsClient instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Monitor.Query.MetricsClient,Azure.Monitor.Query.MetricsClientOptions> AddMetricsClient<TBuilder> (this TBuilder builder, Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddMetricsClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Monitor.Query.MetricsClient, Azure.Monitor.Query.MetricsClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddMetricsClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, endpoint As Uri) As IAzureClientBuilder(Of MetricsClient, MetricsClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder

The builder to register with.

endpoint
Uri

The data plane service endpoint to use.

Returns

Applies to