Freigeben über


ApplicationInsightsDataClientExtensions.QueryAsync Methode

Definition

Ausführen einer Analytics-Abfrage

public static System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Models.QueryResults> QueryAsync (this Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient operations, string query, TimeSpan? timespan = default, TimeSpan? timespan1 = default, System.Collections.Generic.IList<string> applications = default, System.Threading.CancellationToken cancellationToken = default);
static member QueryAsync : Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient * string * Nullable<TimeSpan> * Nullable<TimeSpan> * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.ApplicationInsights.Models.QueryResults>
<Extension()>
Public Function QueryAsync (operations As IApplicationInsightsDataClient, query As String, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional timespan1 As Nullable(Of TimeSpan) = Nothing, Optional applications As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of QueryResults)

Parameter

operations
IApplicationInsightsDataClient

Die Vorgangsgruppe für diese Erweiterungsmethode.

query
String

Die auszuführende Abfrage.

timespan
Nullable<TimeSpan>

Optional. Der Zeitraum, über den Daten abfragt werden sollen. Dies ist ein ISO8601-Zeitraumwert. Dieser Zeitbereich wird zusätzlich zu allen angewendet, die im Abfrageausdruck angegeben sind.

timespan1
Nullable<TimeSpan>

Optional. Der Zeitraum, über den Daten abfragt werden sollen. Dies ist ein ISO8601-Zeitraumwert. Dieser Zeitbereich wird zusätzlich zu allen angewendet, die im Abfrageausdruck angegeben sind.

applications
IList<String>

Eine Liste der Anwendungen, die in der Abfrage enthalten sind.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Führt eine Analyseabfrage für Daten aus.

Hier sehen Sie ein Beispiel für die Verwendung von POST

mit einer Analytics-Abfrage.

Gilt für: