MetricsClientBuilderExtensions.AddMetricsClient 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
AddMetricsClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Registers a MetricsClient instance. |
AddMetricsClient<TBuilder>(TBuilder, Uri) |
Registers a MetricsClient instance. |
AddMetricsClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
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)
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET