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

MetricsExtensions.GetMultipleAsync 方法

定义

检索指标数据

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Query.Models.MetricsResultsItem>> GetMultipleAsync (this Microsoft.Azure.ApplicationInsights.Query.IMetrics operations, string appId, System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Query.Models.MetricsPostBodySchema> body, System.Threading.CancellationToken cancellationToken = default);
static member GetMultipleAsync : Microsoft.Azure.ApplicationInsights.Query.IMetrics * string * System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Query.Models.MetricsPostBodySchema> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Query.Models.MetricsResultsItem>>
<Extension()>
Public Function GetMultipleAsync (operations As IMetrics, appId As String, body As IList(Of MetricsPostBodySchema), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of MetricsResultsItem))

参数

operations
IMetrics

此扩展方法的操作组。

appId
String

应用程序的 ID。 这是Azure 门户“API 访问设置”边栏选项卡中的应用程序 ID。

body
IList<MetricsPostBodySchema>

批处理指标查询。

cancellationToken
CancellationToken

取消标记。

返回

注解

获取多个指标的指标值

适用于