搜索看看
获取主机系统负载状态列表接口
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentSysLoadStatesList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2", "startTime":"2021-04-26 00:00:00", "endTime":"2021-04-26 23:59:59", "page":1, "pageSize":20 } 返回结果: { "msg":"", "code":"0", "data":{ "pageSize":2, "list":[ { "dateStr":"22:08:22", "fiveLoad":0.25, "fifteenLoad":0.36, "oneLoad":0.06, "hostname":"10.2.10.19", "createTime":1640614102000, "id":"1475468604593012736" } ], "pageNum":1, "total":15, "pages":8 } }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "hostname":"必填,主机ip,完全匹配", "startTime":"非必填,开始时间", "endTime":"非必填,结束时间", "orderBy":"非必填,排序字段,v3.4.4开始支持此参数,如:ONE_LOAD,FIVE_LOAD,FIFTEEN_LOAD", "orderType":"非必填,降序或升序,v3.4.4开始支持此参数,DESC或ASC", "page":"必填,第几页", "pageSize":"必填,每页多少条" } 返回结果: { "msg":"错误信息,成功时候为空", "code":"0成功1错误", "data":{ "pageSize":"每页多少条", "list":[ { "dateStr":"22:08:22", "fiveLoad":"5分钟系统负载,win没有系统负载指标", "fifteenLoad":"15分钟系统负载,win没有系统负载指标", "oneLoad":"1分钟系统负载,win没有系统负载指标", "hostname":"主机IP", "createTime":"创建时间,毫秒", "id":"1475468604593012736" } ], "pageNum":"当前第几页", "total":"总共多少条", "pages":"总共多少页" } }