v5

latestSwagger 2.0Microsoftraw.githubusercontent.com2020-05-1597471.5 KB

Execute an Analytics query

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

post/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/components/{applicationName}/query

Path parameters

subscriptionIdstring required

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupNamestring required

The name of the resource group to get. The name is case insensitive.

applicationNamestring required

Name of the Application Insights application.

Query parameters

apiVersionstring required

Client API version.

Request body

querystring required

The Analytics query. Learn more about the Analytics query syntax

timespanstring

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.

applicationsstring[]

Application IDs to include in cross-application queries.

Response

Successful response