Partager via


MetricsExtensions.GetMultipleAsync Méthode

Définition

Récupérer des données de métrique

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))

Paramètres

operations
IMetrics

Groupe d’opérations pour cette méthode d’extension.

appId
String

ID de l’application. Il s’agit de l’ID d’application du panneau Des paramètres d’accès à l’API dans le Portail Azure.

body
IList<MetricsPostBodySchema>

Requête de métriques par lots.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Remarques

Obtient les valeurs de métrique pour plusieurs métriques

S’applique à