Partager via


MetricsQueryClient.GetMetricNamespaces(String, CancellationToken) Méthode

Définition

Obtient des espaces de noms de métrique pour une ressource particulière.

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

Paramètres

resourceId
String

Nom de la ressource. Par exemple : /subscriptions/<subscription_id>/resourceGroups/<resource_group_name>/providers/<resource_provider>/<resource>,
/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/resource-group/providers/Microsoft.Storage/storageAccounts/mystorage,
/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/resource-group/providers/Microsoft.Compute/virtualMachines/myvm

cancellationToken
CancellationToken

CancellationToken à utiliser.

Retours

Collection paginable d’espaces de noms de métriques.

S’applique à