MetricsQueryClient Class
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.
The MetricsQueryClient allows you to query the Azure Monitor Metrics service for a single Azure resource.
public class MetricsQueryClient
type MetricsQueryClient = class
Public Class MetricsQueryClient
- Inheritance
-
MetricsQueryClient
Constructors
MetricsQueryClient() |
Creates an instance of MetricsQueryClient to support mocking. |
MetricsQueryClient(TokenCredential, MetricsQueryClientOptions) |
Creates an instance of MetricsQueryClient for Azure Public Cloud usage. Uses the default 'https://management.azure.com' endpoint, unless Audience is set to an Azure sovereign cloud. |
MetricsQueryClient(TokenCredential) |
Creates an instance of MetricsQueryClient for Azure Public Cloud usage. Uses the default 'https://management.azure.com' endpoint. To access an Azure sovereign cloud, use the following constructor overload: MetricsQueryClient(TokenCredential, MetricsQueryClientOptions)
|
MetricsQueryClient(Uri, TokenCredential, MetricsQueryClientOptions) |
Creates an instance of MetricsQueryClient for the Azure cloud represented by |
Properties
Endpoint |
Gets the endpoint used by the client. |
Methods
GetMetricDefinitions(String, String, CancellationToken) |
Gets metric definitions for a particular resource and metric namespace. |
GetMetricDefinitionsAsync(String, String, CancellationToken) |
Gets metric definitions for a particular resource and metric namespace. |
GetMetricNamespaces(String, CancellationToken) |
Gets metric namespaces for a particular resource. |
GetMetricNamespacesAsync(String, CancellationToken) |
Gets metric namespaces for a particular resource. |
QueryResource(String, IEnumerable<String>, MetricsQueryOptions, CancellationToken) |
Queries metrics for a resource.
|
QueryResourceAsync(String, IEnumerable<String>, MetricsQueryOptions, CancellationToken) |
Queries metrics for a resource.
|
Applies to
Azure SDK for .NET