Skip to content

设备监控接口

  • 功能:获取设备监控。
  • 请求路径:/v1/monitor/monitorMinute
  • 请求方式:GET
  • 请求参数
名称类型必须描述
snString设备号
typeInteger日期1今日 2昨日 3三天,默认3天跑量图
  • 返回值
名称类型描述
snString设备号
workDateString日期字符串,yyyy-MM-dd便于查询
timeSliceDate时间节点
uploadDouble上行带宽
downloadDouble下行带宽
cpuUsedDoubleCPU使用率
memUsedDouble内存使用率
hdUsedDouble流量
createdAtDate创建日期

返回示例:

json
    //正常请求:
    {
    "code": 0,
    "message": "操作成功!",
    "data": [
        {
            "sn": "xxxxxx",
            "timeSlice": "2025-08-29 00:00:00",
            "workDate": "2025-08-29",
            "upload": 135.0799,
            "download": 5.9984,
            "cpuUsed": 87.44,
            "memUsed": 18.93,
            "hdUsed": 95.55,
            "createdAt": "2025-08-29 00:02:14"
        },
        {
            "sn": "xxxxxx",
            "timeSlice": "2025-08-29 00:05:00",
            "workDate": "2025-08-29",
            "upload": 135.9558,
            "download": 53.2822,
            "cpuUsed": 78.13,
            "memUsed": 18.57,
            "hdUsed": 95.56,
            "createdAt": "2025-08-29 00:12:14"
        },
        ...
    ]
    }
json
    //异常请求:
    //http code 4xx/5xx
    {
        "code": 500,
        "message": "签名失败",
        "data": null
    }