Share via


MetricsQueryClientBuilderExtensions.AddMetricsQueryClient Method

Definition

Overloads

AddMetricsQueryClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a MetricsQueryClient instance.

AddMetricsQueryClient<TBuilder>(TBuilder, Uri)

Registers a MetricsQueryClient instance.

AddMetricsQueryClient<TBuilder>(TBuilder)

Registers a MetricsQueryClient instance with the default endpoint https://management.azure.com/ for the public cloud.

AddMetricsQueryClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
MetricsQueryClientBuilderExtensions.cs
Source:
MetricsQueryClientBuilderExtensions.cs

Registers a MetricsQueryClient instance.

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

Type Parameters

TBuilder
TConfiguration

Parameters

builder
TBuilder

The builder to register with.

configuration
TConfiguration

The configuration values.

Returns

Applies to

AddMetricsQueryClient<TBuilder>(TBuilder, Uri)

Source:
MetricsQueryClientBuilderExtensions.cs
Source:
MetricsQueryClientBuilderExtensions.cs

Registers a MetricsQueryClient instance.

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

Type Parameters

TBuilder

Parameters

builder
TBuilder

The builder to register with.

endpoint
Uri

The resource manager service endpoint to use.

Returns

Applies to

AddMetricsQueryClient<TBuilder>(TBuilder)

Source:
MetricsQueryClientBuilderExtensions.cs
Source:
MetricsQueryClientBuilderExtensions.cs

Registers a MetricsQueryClient instance with the default endpoint https://management.azure.com/ for the public cloud.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Monitor.Query.MetricsQueryClient,Azure.Monitor.Query.MetricsQueryClientOptions> AddMetricsQueryClient<TBuilder> (this TBuilder builder) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddMetricsQueryClient : 'Builder -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Monitor.Query.MetricsQueryClient, Azure.Monitor.Query.MetricsQueryClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddMetricsQueryClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder) As IAzureClientBuilder(Of MetricsQueryClient, MetricsQueryClientOptions)

Type Parameters

TBuilder

Parameters

builder
TBuilder

The builder to register with.

Returns

Applies to