Base Input Object
This minimal object structure is expected on several requests to the API.
interface Alert {
ts: string
}
interface BinMesurement = {
bin: string
data: {
ts: string
}
alerts?: Alert[]
}
interface RequestObject {
data: BinMesurement[]
}
Each nested object is split into two parts: data and alerts. The data and alerts object must contain the ts (timestamp) and any other data you want to store. The alerts object is optional
Example
{
"data":[
{
"bin":"521739b1-5f51-4245-b80b-e45465925347",
"data":{
"vlt":1,
"amp":2,
"tmp":3,
"ts":"2024-01-25T10:00:00Z"
},
"alerts":[
{
"code":"SE001001",
"ts":"2024-01-25T10:00:00Z"
}
]
}
]
}
