指标历史数值查询(限一个月)✅
GET
/api/v1/telemetry/datas/history/pagination设备历史数值查询
此接口不分页,需要前端分页
导出功能暂没完成
请求参数
Query 参数
device_id
string
必需
end_time
integer
必需
结束时间(毫秒时间戳)
示例值:
1711656000000
export_excel
string
可选
导出到excel标志true,false
key
string
必需
start_time
integer
必需
起始时间(毫秒时间戳)
示例值:
1711656000000
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {3}]
必需
key
string
必需
ts
string
必需
value
number
必需
示例
{
"code": 200,
"message": "Get history data successfully",
"data": [
{
"key": "temp6",
"ts": "2024-03-13T00:21:38.664746Z",
"value": 25.933
},
{
"key": "temp6",
"ts": "2024-03-13T00:21:39.064046Z",
"value": 25.933
},
{
"key": "temp6",
"ts": "2024-03-13T00:21:39.302669Z",
"value": 25.933
},
{
"key": "temp6",
"ts": "2024-03-13T00:21:39.722916Z",
"value": 25.933
},
{
"key": "temp6",
"ts": "2024-03-13T00:28:10.533822Z",
"value": 25.933
},
{
"key": "temp6",
"ts": "2024-03-13T00:28:10.840879Z",
"value": 25.933
},
{
"key": "temp6",
"ts": "2024-03-13T00:28:11.039675Z",
"value": 25.933
}
]
}
最后修改时间: 10 个月前