更新时间:2023-06-15 05:53:31
本文介绍多设备用电趋势汇总统计的 API。
一定时间范围内,多设备用电趋势汇总统计。
GET: /v1.0/iot-03/energy/{energy_type}/devices/nodes/statistics-trend
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
energy_type | String | uri | true | 能源类型,仅支持电:electricity |
energy_action | String | query | true | 能源行为,仅支持消耗:consume |
statistics_type | String | query | true | 统计粒度。
|
start_time | String | query | true | 开始时间 |
end_time | String | query | true | 结束时间 |
device_ids | String | query | true | 设备ID集合 |
contain_childs | Boolean | query | true | 是否包含子节点数据,默认true |
参数名 | 类型 | 说明 |
---|---|---|
result | List | 响应结果 |
result
说明
参数名 | 类型 | 说明 |
---|---|---|
time | String | 时间 |
value | Float | 能源数据 |
$jacoco_data | boolean[] |
GET: /v1.0/iot-03/energy/electricity/devices/nodes/statistics-trend?energy_action=consume&statisticsType=day&startTime=20210925&endTime=20210926&containChilds=false&device_ids=6c5ef5dc7fabc34138****,erwerwerwe****
{ "result": [ { "time": "20210925", "value": 0 }, { "time": "20210926", "value": 0 } ], "t": 1641459342692, "success": true }
参考 错误码。
该内容对您有帮助吗?
是意见反馈