搜索看看
获取数通设备PING监测列表
1、示例,下面【2】是参数说明,只获取监控中的数据:
请求URL:http://localhost:9999/dceInfo/agentList 请求方式:POST 请求参数(Content-Type:application/json): { "wgToken":"65d05df102851c6535322e73b2f99c06" } 返回结果: { "msg":"", "code":"0", "data":[ { "active":"1", "remark":"", "resTimes":1, "hostname":"45.32.211.215", "createTime":1646724643000, "id":"1500784714955489280" } ] }
2、参数说明:
请求参数(Content-Type:application/json): { "wgToken":"必填,server/config/application.yml里的wgToken配置项的md5加密字符串,大小写均可", "groupName","非必填,标签名称,多个用英文逗号隔开" } 返回结果: { "msg":"错误信息", "code":"0成功1错误", "data":[ { "active":"监控状态,1监控中,2已停止", "remark":"备注", "resTimes":"响应时间毫秒,-1代表设备已下线,大于-1代表设备在线", "hostname":"设备IP", "createTime":"更新时间,毫秒", "id":"1500784714955489280" } ] }