搜索看看
数据开放接口 / 获取主机cpu温度列表接口
1、示例,下面【2】是参数说明:
请求URL:http://localhost:9999/systemInfoOpen/agentCpuTemperaturesList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06", "hostname":"192.168.1.2" } 返回结果: { "msg":"", "code":"0", "data":[ { "input":"41.85", "hostname":"192.168.1.2", "crit":"80", "max":"100", "createTime":1619423296000, "core_index":"cpu_0", "id":"8384b3ca19324eeca0d157bb0886412a" } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "hostname":"必填,主机ip,完全匹配" } 返回结果: { "msg":"错误信息,成功时候为空", "code":"0成功1错误", "data":[ { "input":"当前温度", "hostname":"主机IP", "crit":"临界值", "max":"最高", "createTime":"添加时间,毫秒", "core_index":"CPU标识", "id":"66989985d03d474fb532aa4dda25597a" } ] }