-
Notifications
You must be signed in to change notification settings - Fork 8
Querying events
Santanu edited this page May 30, 2014
·
8 revisions
The query analytics is used to filter and search for events. The request supports pagination.
{
"opcode": "query", //This is a query operation
"table": "test-app", //Your table/app name
"filters" : [] //Array of filters, send null or empty array if required
"sort": { //Result sorting
"field": "_timestamp", //You can put other field name if required.
"order": "asc" //asc: acesnding, desc: descending
},
"from": 0, //Start record number
"limit": 10 //Number of records to get
}
{
"opcode": "query",
"documents": [
{
"id": "255c08c8-3b21-4acb-89c9-0dc834647b56",
"timestamp": 1401445491709,
"data": {
//Your event
}
},
{
"id": "4d3a4529-6c90-4f41-9664-d06f53738fde",
"timestamp": 1401445491709,
"data": {
//Your event
}
},
{
"id": "bc36d174-eeaa-4413-ae12-ed21646b8655",
"timestamp": 1401445491709,
"data": {
//Your event
}
}
]
}