Freigeben über


ApplicationInsightsDataClient.GetMetricsWithHttpMessagesAsync Methode

Definition

Abrufen von Metrikdaten

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

Parameter

body
IList<MetricsPostBodySchema>

Die batchierte Metrikabfrage.

customHeaders
Dictionary<String,List<String>>

Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Implementiert

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Hinweise

Ruft Metrikwerte für mehrere Metriken ab.

Gilt für: