搜索看看
数据开放接口 / 获取主机磁盘IO列表接口
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentDiskIosList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2" } 返回结果: { "msg":"", "code":"0", "data":[ { "fileSystem":"C:", "writeTime":"2702", "readTime":"18495", "readCount":"765826", "hostname":"10.2.10.19", "writeBytes":"20G", "createTime":1640612616000, "writeCount":"937848", "readBytes":"26G", "id":"1475462401267728386" } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "hostname":"必填,主机ip,完全匹配" } 返回结果: { "msg":"错误信息,成功时候为空", "code":"0成功1错误", "data":[ { "fileSystem":"盘符类型", "writeTime":"是指(除NetBSD和OpenBSD外的所有时间)从磁盘写入所用的时间(毫秒)", "readTime":"是指(除NetBSD和OpenBSD外的所有时间)从磁盘读取所用的时间(毫秒)", "readCount":"是指磁盘读取的总次数", "hostname":"主机IP", "writeBytes":"是指磁盘写入的总字节数", "createTime":"添加时间,毫秒", "writeCount":"是指磁盘写入的总次数", "readBytes":"是指磁盘读取的总字节数", "id":"1475462401267728386" } ] }