Udostępnij za pośrednictwem


MetricsQueryClient.GetMetricNamespacesAsync(String, CancellationToken) Method

Definition

Gets metric namespaces for a particular resource.

public virtual Azure.AsyncPageable<Azure.Monitor.Query.Models.MetricNamespace> GetMetricNamespacesAsync (string resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMetricNamespacesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Monitor.Query.Models.MetricNamespace>
override this.GetMetricNamespacesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Monitor.Query.Models.MetricNamespace>
Public Overridable Function GetMetricNamespacesAsync (resourceId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MetricNamespace)

Parameters

resourceId
String

The resource name.

cancellationToken
CancellationToken

The CancellationToken to use.

Returns

A pageable collection of metric namespaces.

Applies to