getLastMeasures #
Retrieves the last measures of a device.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:engineId/devices/:_id/lastMeasures
Method: GET or POST
Other protocols #
{
"controller": "device-manager/devices",
"action": "getLastMeasures",
"engineId": "<engineId>",
"_id": "<deviceId>",
// optional:
"measureCount": "<measure count>"
}
Arguments #
engineId
: engine id_id
: device idmeasureCount
: set the maximum number of measures returned
Response #
{
"status": 200,
"error": null,
"controller": "device-manager/devices",
"action": "getLastMeasures",
"requestId": "<unique request identifier>",
"result": {
"<firstMeasure>": {
"measuredAt": 42,
"name": "<firstMeasure>",
"originId": "<originId>",
"payloadUuids": [
// Payload UUIDs
],
"type": "<measureType>",
"values": {
// Measure values
}
},
"<secondMeasure>": {
// ...
}
}
}
Edit this page on Github(opens new window)