I am wondering the same thing, although not quite to the same purpose; I have a folder that I know isn’t syncing, and I’m trying to see how to have a script detect this.
The only thing I’ve found that actually shows anything wrong for this folder (that, as I said, I’m quite sure isn’t successfully syncing) is:
/rest/db/completion?folder=src&device=[specific_device_id]
If I do that, I get:
{
"completion": 99.14897162188355,
"globalBytes": 78764706,
"needBytes": 670310,
"needDeletes": 0
}
This means I have to iterate over every directory and every device to see problems!
In particular,
/rest/db/status?folder=src
shows:
{
"globalBytes": 78764706,
"globalDeleted": 3188,
"globalDirectories": 977,
"globalFiles": 4999,
"globalSymlinks": 12,
"ignorePatterns": false,
"inSyncBytes": 78764706,
"inSyncFiles": 4999,
"invalid": "",
"localBytes": 78764706,
"localDeleted": 3147,
"localDirectories": 977,
"localFiles": 4999,
"localSymlinks": 12,
"needBytes": 0,
"needDeletes": 0,
"needDirectories": 0,
"needFiles": 0,
"needSymlinks": 0,
"sequence": 44122,
"state": "idle",
"stateChanged": "2017-11-17T18:55:14.3305827-08:00",
"version": 44122
}
which looks completely OK!
I hope there is a better way, but this is the best I’ve found so far.