Spécifications d’envoi des données

Création du stream

POST /api/data/v1/streams
{
"reference": "Temperature_BAT_1",
"label": "Température air intérieur bâtiment 1",
"description": "Flux de température air intérieur du bâtiment 1",
"type": "metrics",
"tags": {
"intent_assetReference": "BAT_001",
"intent_dataType": "snapshot",
"intent_activityKey": "AirTemp",
"intent_unit": "celsius",
"intent_frequency":60,
"intent_contractReference": "CONTRACT-TEMP-10",
"deviceId": "671256GDF"
}
}
}

Message de retour

Publication de données

POST /api/data/v1/metrics
{
"streamReference": "Temperature_BAT_1",
"payload": [
{
"timestamp": 1636444800000,
"value": 21
},
{
"timestamp": 1636448400000,
"value": 21.8
},
{
"timestamp": 1636452000000,
"value": 21
},
{
"timestamp": 1636455600000,
"value": 20.7
}
]
}