Freigeben über


IApplicationInsightsDataClient.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>>>
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>>

Die Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Ruft Metrikwerte für mehrere Metriken ab.

Gilt für: