OperationalInsightsDataClientExtensions.QueryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Execute an Analytics query
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)
Parameters
- operations
- IOperationalInsightsDataClient
The operations group for this extension method.
- query
- String
The query to execute.
Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Executes an Analytics query for data.
Here is an example for using POST with an Analytics query.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET