语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

MetricsBatchQueryClient.QueryBatchAsync Method

Definition

Returns all the Azure Monitor metrics requested for the batch of resources.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Monitor.Query.Models.MetricResultsResponse>> QueryBatchAsync(System.Collections.Generic.List<string> resourceIds, System.Collections.Generic.List<string> metricNames, string metricNamespace, Azure.Monitor.Query.MetricsQueryOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member QueryBatchAsync : System.Collections.Generic.List<string> * System.Collections.Generic.List<string> * string * Azure.Monitor.Query.MetricsQueryOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Monitor.Query.Models.MetricResultsResponse>>
override this.QueryBatchAsync : System.Collections.Generic.List<string> * System.Collections.Generic.List<string> * string * Azure.Monitor.Query.MetricsQueryOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Monitor.Query.Models.MetricResultsResponse>>
Public Overridable Function QueryBatchAsync (resourceIds As List(Of String), metricNames As List(Of String), metricNamespace As String, Optional options As MetricsQueryOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MetricResultsResponse))

Parameters

resourceIds
List<String>

The resource URIs for which the metrics is requested.

metricNames
List<String>

The names of the metrics to query.

metricNamespace
String

The namespace of the metrics to query.

options
MetricsQueryOptions

The MetricsBatchQueryClientOptions to configure the query.

cancellationToken
CancellationToken

The CancellationToken to use.

Returns

A time-series metrics result for the requested metric names.

Applies to