GET /rest/events/diskΒΆ

Returns local disk events that occur when the scanner detects local file system changes (LocalChangeDetected) or when files are pulled from a remote device. In addition it returns ping events, such that this request returns after a minute, at the latest.

Optional GET parameters:
  • since (events starting after the given ID)
  • limit (return last x number of events)
  $ curl -s http://localhost:8384/rest/events/disk?limit=4 | json
 {
  "id": 4,
  "globalID": 45,
  "time": "2016-09-26T22:06:10.4734536-04:00",
  "type": "LocalChangeDetected",
  "data": {
    "action": "added",
    "folderID": "vitwy-zxuqt",
    "label": "TestSync",
    "path": "C:\\Users\\Nate\\Sync\\testfolder",
    "type": "dir"
  }
},
{
  "id": 5,
  "globalID": 46,
  "time": "2016-09-26T22:06:10.4754548-04:00",
  "type": "LocalChangeDetected",
  "data": {
    "action": "added",
    "folderID": "vitwy-zxuqt",
    "label": "TestSync",
    "path": "C:\\Users\\Nate\\Sync\\dfghdfj\\test file.rtf",
    "type": "file"
  }
},
{
  "id": 6,
  "globalID": 58,
  "time": "2016-09-26T22:07:10.7189141-04:00",
  "type": "LocalChangeDetected",
  "data": {
    "action": "deleted",
    "folderID": "vitwy-zxuqt",
    "label": "TestSync",
    "path": "C:\\Users\\Nate\\Sync\\testfolder",
    "type": "dir"
  }
},
{
  "id": 7,
  "globalID": 59,
  "time": "2016-09-26T22:07:10.7189141-04:00",
  "type": "LocalChangeDetected",
  "data": {
    "action": "deleted",
    "folderID": "vitwy-zxuqt",
    "label": "TestSync",
    "path": "C:\\Users\\Nate\\Sync\\dfghdfj\\test file.rtf",
    "type": "file"
  }
}