Partager via


ApplicationInsightsDataClient.GetMetricsWithHttpMessagesAsync Méthode

Définition

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

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Models.MetricsResultsItem>>> GetMetricsWithHttpMessagesAsync (System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Models.MetricsPostBodySchema> body, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMetricsWithHttpMessagesAsync : System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Models.MetricsPostBodySchema> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Models.MetricsResultsItem>>>
override this.GetMetricsWithHttpMessagesAsync : System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Models.MetricsPostBodySchema> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Azure.ApplicationInsights.Models.MetricsResultsItem>>>
Public Function GetMetricsWithHttpMessagesAsync (body As IList(Of MetricsPostBodySchema), Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of IList(Of MetricsResultsItem)))

Paramètres

body
IList<MetricsPostBodySchema>

Requête de métriques par lot.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la requête.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Implémente

Exceptions

Levée lorsque l’opération a retourné un code status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

Levée lorsqu’un paramètre requis a la valeur Null

Remarques

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

S’applique à