次の方法で共有


OperationalInsightsDataClientExtensions.QueryAsync メソッド

定義

分析クエリを実行する

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

パラメーター

operations
IOperationalInsightsDataClient

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

query
String

実行するクエリ。

timespan
Nullable<TimeSpan>

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

workspaces
IList<String>

クエリに含まれるワークスペースの一覧。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

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

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

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

適用対象