Commit 8842e6ac authored by Krit Punpreuk's avatar Krit Punpreuk

Add Query service base on ts.

parent 7a6492e0
......@@ -3,5 +3,5 @@ var router = express.Router();
router.use('/object',require('./service-object'));
router.use('/storage',require('./service-storage'));
router.use('/query',require('./service-query'));
module.exports = router;
This diff is collapsed.
  • Query data by timestamp. Search using "_ts" attribute in meta

    • seek nearest data given by unix timestamp Return the closest data timestamp left and right side if not exactly match) http://localhost:19080/v1.2/query/<storage-id>/bsstime?seek=1492563941
    • Search by start and end unixtimestamp
      http://localhost:19080/v1.2/query/<storage-id>/bsstime?start=1492563941&end=1492663941 Can use limit parameter to limit ouput
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment