Things within a particular organization send their data to the Telemetry API in a JSON format that matches the predefined Thing Model structure.

Send

New Telemetry data can be streamed to Moab by an authenticated Thing registered with the system within a particular Organization. While the API POST can contain any type of properly formatted JSON document, the JSON Keys should match the key structure defined by the appropriate Thing Model properties to simplify analytics. The JSON Values should also match the data types defined in those same Thing Model properties. The API JSON response contains the captured Telemetry id and success or failure status.

RequestResponse
POST https://<moab url>/api/v1/telemetrySuccess
{
    “id”: <telemetry id>,
    “status”: “success”,
    “message”: “telemetry saved”
}
Failure
{
“id”:”0″,
“status”:”error”,
“message”:”thing creation failed”
}
{
“type”: “https://tools.ietf.org/html/rfc…”,
“title”: “Unauthorized”,
“status”: 401,
“traceId”: “|…”
}
Curl
curl -L -X POST ‘https://<moab url>/api/v1/Telemetry’ \
-H ‘Content-Type: application/json’ \
-H ‘Authorization: Bearer <identity>.<security token>’ \
–data-raw ‘{
“name”: “<whatever value>”,
“key”: “<whatever value>”
}’