When using the REST API to get measurements I can pass the revert
parameter to reverse the order of the measurements:
https://tenant.cumulocity.com/measurement/measurements?revert=true
However, as soon as I pass an extra device as a parameter,
https://tenant.cumulocity.com/measurement/measurements?revert=true&source=876123
the revert keyword seems to stop working. The first value shown is sometime a day before the actual most recent value. In fact, when specifying revert=false
or omitting the parameter, the timestamp of the first value shown is actually chronologically AFTER the timestamp of the value shown first with revert=true
.
- First Item with no source specified and
revert=true
:"2015-12-20T18:15:00.000+01:00"
- First Item with source specified and
revert=true
:"2015-12-19T01:25:00.000+01:00"
- First Item with source specified and
revert=false
:"2015-12-19T12:50:00.000+01:00"
Is there any explanation for this or is the revert keyword not valid when specifying a source?