Appearance
设备带宽查询接口
- 功能:获取设备跑量图。
- 请求路径:/v1/device/bandwidthMinute
- 请求方式:GET
- 请求参数:
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| sn | String | 是 | 设备号 |
| type | Integer | 否 | 日期1今日 2昨日 3三天,默认3天跑量图 |
- 返回值:
| 名称 | 类型 | 描述 |
|---|---|---|
| sn | String | 设备号 |
| type | Integer | 类型(1上行,2下行) |
| timeSlice | Date | 时间节点 |
| bandwidth | Double | 流量 |
返回示例:
json
//正常请求:
{
"code": 0,
"message": "操作成功!",
"data": [
{
"sn": "xxxxxxx",
"type": 1,
"timeSlice": "2025-08-26 00:00:00",
"bandwidth": 90.8142
},
{
"sn": "xxxxxx",
"type": 2,
"timeSlice": "2025-08-26 00:00:00",
"bandwidth": 5.6102
}...
]
}json
//异常请求:
//http code 4xx/5xx
{
"code": 500,
"message": "签名失败",
"data": null
}