Megosztás a következőn keresztül:


QueryOperationsExtensions.ExecuteAsync Method

Definition

Execute an Analytics query

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

Parameters

operations
IQueryOperations

The operations group for this extension method.

appId
String

ID of the application. This is Application ID from the API Access settings blade in the Azure portal.

query
String

The query to execute.

timespan
String

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.

applications
IList<String>

A list of Application IDs for cross-application queries.

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