Last active
September 20, 2016 15:03
-
-
Save falkorichter/4a4ce25c93cad9258561cbc075111ad2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": [], | |
"info": { | |
"name": "groupm", | |
"_postman_id": "cfc3a5d8-927e-131b-f1e3-6b9f1e43620b", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "last 24 hours, max age 30 days - size", | |
"request": { | |
"url": "https://connect.sensorberg.com/api/query/_search", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "X-Auth-Token", | |
"value": "e19fb679bfde2db1a528682e43edfe41889c1dd21572ec25d0132fbaf712a124", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"size\" :1,\n \"query\" : {\n \t\"bool\" : {\n \"must\" : [\n { \"range\" : { \"housekeeping.addedToProductionTimeStamp\" : { \"gte\": \"now-1d\", \"lte\" : \"now\" } } },\n { \"range\" : { \"trigger.timestamp\" : { \"gte\": \"now-1M\" } } }\n ]\n \t}\n },\n \"fields\" : [\n \t\"device.aid\", \"campaign.name\", \"beacon.pid\", \"trigger.timestamp\", \"device.packageName\"\n\t]\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "last 24 hours, max age 30 days - get", | |
"request": { | |
"url": "https://connect.sensorberg.com/api/query/_search", | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"description": "" | |
}, | |
{ | |
"key": "X-Auth-Token", | |
"value": "e19fb679bfde2db1a528682e43edfe41889c1dd21572ec25d0132fbaf712a124", | |
"description": "" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"size\" :100000,\n \"query\" : {\n \t\"bool\" : {\n \"must\" : [\n { \"range\" : { \"housekeeping.addedToProductionTimeStamp\" : { \"gte\": \"now-1d\", \"lte\" : \"now\" } } },\n { \"range\" : { \"trigger.timestamp\" : { \"gte\": \"now-1M\" } } }\n ]\n \t}\n },\n \"fields\" : [\n \t\"device.aid\", \"campaign.name\", \"beacon.pid\", \"trigger.timestamp\", \"device.packageName\" , \"housekeeping.addedToProductionTimeStamp\"\n\t]\n}" | |
}, | |
"description": "" | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment