Udostępnij za pośrednictwem


ApplicationInsightsDataClientExtensions.Query Method

Definition

Execute an Analytics query

public static Microsoft.Azure.ApplicationInsights.Models.QueryResults Query (this Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient operations, string query, TimeSpan? timespan = default, TimeSpan? timespan1 = default, System.Collections.Generic.IList<string> applications = default);
static member Query : Microsoft.Azure.ApplicationInsights.IApplicationInsightsDataClient * string * Nullable<TimeSpan> * Nullable<TimeSpan> * System.Collections.Generic.IList<string> -> Microsoft.Azure.ApplicationInsights.Models.QueryResults
<Extension()>
Public Function Query (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) As QueryResults

Parameters

operations
IApplicationInsightsDataClient

The operations group for this extension method.

query
String

The query to execute.

timespan
Nullable<TimeSpan>

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.

timespan1
Nullable<TimeSpan>

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 applications that are included in the query.

Returns

Remarks

Executes an Analytics query for data.

Here is an example for using POST with an Analytics query.

Applies to