搜索看看
数据开放接口 / 获取主机磁盘IO读写速率接口
(需要升级到v3.5.2或以上版本)
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentDiskIoStateList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2" } 返回结果: { "msg": "", "code": "0", "data": [ { "dateStr": "04-11 18:23:20", "pageSize": 20, "writeIoAvg": "0.33", "hostname": "192.168.1.5", "createTime": 1712831000000, "writeIoAvgDouble": 0.33, "id": "1778368226628075520", "page": 1, "readIoAvg": "65.92", "readIoAvgDouble": 65.92 }, { "dateStr": "04-11 18:38:20", "pageSize": 20, "writeIoAvg": "0.04", "hostname": "192.168.1.5", "createTime": 1712831900000, "writeIoAvgDouble": 0.04, "id": "1778372001392623616", "page": 1, "readIoAvg": "0.0", "readIoAvgDouble": 0 } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,v3.3.7之前版本字符串需小写,v3.3.7(含)之后大小写均可", "hostname":"必填,主机ip,完全匹配" } 返回结果: { "msg":"错误信息,成功时候为空", "code":"0成功1错误", "data":[ { "writeIoAvg": "磁盘写入数据MB/s", "hostname": "主机IP", "createTime": "添加时间,毫秒", "id": "1778368226628075520", "readIoAvg": "磁盘读取数据MB/s" } ] }