MetricsClient Constructors
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
MetricsClient() |
Creates an instance of MetricsClient to support mocking. |
MetricsClient(Uri, TokenCredential, MetricsClientOptions) |
Creates an instance of MetricsClient.
|
MetricsClient()
- Source:
- MetricsClient.cs
Creates an instance of MetricsClient to support mocking.
protected MetricsClient ();
Protected Sub New ()
Applies to
MetricsClient(Uri, TokenCredential, MetricsClientOptions)
- Source:
- MetricsClient.cs
Creates an instance of MetricsClient.
var client = new MetricsClient(
new Uri("https://<region>.metrics.monitor.azure.com"),
new DefaultAzureCredential());
public MetricsClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Query.MetricsClientOptions options = default);
new Azure.Monitor.Query.MetricsClient : Uri * Azure.Core.TokenCredential * Azure.Monitor.Query.MetricsClientOptions -> Azure.Monitor.Query.MetricsClient
Public Sub New (endpoint As Uri, credential As TokenCredential, Optional options As MetricsClientOptions = Nothing)
Parameters
- endpoint
- Uri
The data plane service endpoint to use. For example, https://<region>.metrics.monitor.azure.com/
for Azure Public Cloud.
- credential
- TokenCredential
The TokenCredential instance to use for authentication.
- options
- MetricsClientOptions
The MetricsClientOptions instance to use as client configuration.
Applies to
Azure SDK for .NET