Skip to content

设备带宽查询接口

  • 功能:获取设备跑量图。
  • 请求路径:/v1/device/bandwidthMinute
  • 请求方式:GET
  • 请求参数
名称类型必须描述
snString设备号
typeInteger日期1今日 2昨日 3三天,默认3天跑量图
  • 返回值
名称类型描述
snString设备号
typeInteger类型(1上行,2下行)
timeSliceDate时间节点
bandwidthDouble流量

返回示例:

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
    }