Insights
Runs a KQL query over the tenant's analytics data and returns the rows.
Parameters are referenced by name in the query, for example {"query": "Events | where Name == eventName | take 100", "parameters": {"eventName": "Pass:Installed"}}. A query that runs too long returns 504; aggregate or narrow it.
A KQL query to run over the tenant's analytics data.
KQL query text. Only tables and columns of the analytics schema are accepted, and results only cover the tenant's own data; an empty query, invalid KQL or an unknown table or column returns 400 with a diagnostic.
Query executed.
Tabular result of a query.
Column names, in the order the query projects them.
Empty or invalid query, unknown table or column, invalid or reserved parameter name, options.maxRows out of range, or more matching rows than options.maxRows.
The caller is not authenticated.
The caller lacks the tenant.insights:read scope, or the endpoint is not enabled for the tenant.
Over 60 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
The query ran too long and was cancelled; aggregate or narrow it.
POST /api/{tenantId}/insights/query HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"query": "text",
"parameters": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"options": {
"maxRows": 1
}
}{
"columns": [
"text"
],
"rows": [
[]
]
}Last updated

