POST /{tenantAlias} returns an array of event objects. The body selects the events, and
pagination selects the page. The path is relative to the base URL
https://queryapis.grainql.com/v1/api/query.
Request
{tenantAlias} is the tenant alias that the dashboard shows, not the tenant UUID.
Each object in
filterSet has three required fields:
Read Filters for the operators and property paths.
The
pagination object has two optional fields:
Example
Response fields
Paging
Paging is by offset.- Send
offset0and asize. - Add
sizetooffset, then send the request again. - Repeat until a response holds fewer events than
size.
Rules for the client
- Send
afterandbeforeon every request. A date range limits the data that the server scans. - Set
eventwhen you want one event name. It is faster than a filter oneventName. - Do not page through events to count them. Read Count events.
- When the order matters, sort by
eventTson the client. - If the API returns
429, waitRetry-Afterseconds, then retry one time. Read Query API for the rate limits and the error table.