批量查询多个设备的遥测统计数据
开发中
本地
http://127.0.0.1:9999
本地
http://127.0.0.1:9999
GET
http://127.0.0.1:9999
请求参数
Query 参数
device_ids
array[string]
设备ID数组
keys
array[string]
遥测key数组
time_type
string
必需
limit
integer
可选
aggregate_method
string
必需
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9999/api/v1/telemetry/datas/statistic/batch?device_ids&keys&time_type&limit&aggregate_method' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
array [object {3}]
必需
key
string
必需
time
string
必需
value
number
必需
示例
{"code":200,"message":"操作成功","data":[{"key":"test_data1","time":"2025-06-19T12:00:00.000+08:00","value":25.5},{"key":"test_data1","time":"2025-06-19T11:00:00.000+08:00","value":25.5},{"key":"test_data2","time":"2025-06-19T12:00:00.000+08:00","value":60},{"key":"test_data2","time":"2025-06-19T11:00:00.000+08:00","value":60}]}
修改于 2025-06-19 08:53:09