Status 200
// return format = 0
{
"status": "success",
"data": {
"calc_mode": "AVG",
"columns": [
{"name": "TIME", "type": 5, "length": 4096},
{"name": "tag_01", "type": 20, "length": 17},
{"name": "tag_02", "type": 20, "length": 17}
],
"samples": [
{
"data": [
{
"TIME": "2021-06-16 11:36:00",
"tag_01": 1515.4806,
"tag_02": 1524.3684
},
{
"TIME": "2021-06-16 11:37:00",
"tag_01": 1513.4624,
"tag_02": 1490.107
},
{
"TIME": "2021-06-17 15:42:00",
"tag_01": 1499.028979191633,
"tag_02": null
},
{
"TIME": "2021-06-17 15:43:00",
"tag_01": 1470.2225841476657,
"tag_02": null
},
{
"TIME": "2021-06-17 15:44:00",
"tag_01": 1487.0528,
"tag_02": 1508.5176
},
{
"TIME": "2021-07-06 12:12:00",
"tag_01": 1887.5,
"tag_02": 1628
}
]
}
]
}
}
// return format = 1
{
"status": "success",
"data": {
"calc_mode": "AVG",
"columns": [
{"name": "TIME", "type": 5, "length": 4096},
{"name": "tag_01", "type": 20, "length": 17},
{"name": "tag_02", "type": 20, "length": 17}
],
"samples": [
{
"data": {
"TIME": [
"2021-06-16 11:36:00",
"2021-06-16 11:37:00",
"2021-06-17 15:42:00",
"2021-06-17 15:43:00",
"2021-06-17 15:44:00",
"2021-07-06 12:12:00"
],
"tag_01": [
1515.4806,
1513.4624,
1499.028979191633,
1470.2225841476657,
1487.0528,
1887.5
],
"tag_02": [
1524.3684,
1490.107,
null,
null,
1508.5176,
1628
]
}
}
]
}
} |