次の方法で共有


IOperationalInsightsDataClient.QueryWithHttpMessagesAsync メソッド

定義

分析クエリを実行する

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.OperationalInsights.Models.QueryResults>> QueryWithHttpMessagesAsync (string query, TimeSpan? timespan = default, System.Collections.Generic.IList<string> workspaces = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member QueryWithHttpMessagesAsync : string * Nullable<TimeSpan> * System.Collections.Generic.IList<string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.OperationalInsights.Models.QueryResults>>
Public Function QueryWithHttpMessagesAsync (query As String, Optional timespan As Nullable(Of TimeSpan) = Nothing, Optional workspaces As IList(Of String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of QueryResults))

パラメーター

query
String

実行するクエリ。

timespan
Nullable<TimeSpan>

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

workspaces
IList<String>

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

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

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

例を次に示します。

分析クエリで POST を使用する。

適用対象