次の方法で共有


ApplicationInsightsDataClientExtensions.QueryAsync メソッド

定義

分析クエリを実行する

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)

パラメーター

operations
IApplicationInsightsDataClient

この拡張メソッドの操作グループ。

query
String

実行するクエリ。

timespan
Nullable<TimeSpan>

省略可能。 データのクエリを実行する期間。 これは ISO8601 期間の値です。 この期間は、クエリ式で指定されているに加えて適用されます。

timespan1
Nullable<TimeSpan>

任意。 データのクエリを実行する期間。 これは ISO8601 期間の値です。 この期間は、クエリ式で指定されているに加えて適用されます。

applications
IList<String>

クエリに含まれるアプリケーションの一覧。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

データに対して Analytics クエリを実行します。

POST を使用する例を次に示します。

分析クエリを使用します。

適用対象