| | |
| | | * @return |
| | | */ |
| | | public TMonitorResult check(TMonitorResult monitor,Integer times) { |
| | | // TMonitorResult(deptId=202, ip=51.95.48.18, online=0, |
| | | // onlineStr=null, pingOnline=true, pingOnlineStr=null, |
| | | // checkCount=1, offLineCount=0, offLineTimeStr=null, |
| | | // monitorType=3, name=DX_R三中大门前路段左侧人行道2_全景, |
| | | // workOrder=null, pointId=null, createWorkOrder=null, dynamicColumnList=null), |
| | | |
| | | // 先检测能否访问该ip的网页 |
| | | ResponseEntity<String> res = null; |
| | | String prefix = "http://"; |
| | |
| | | redisTemplate.opsForHash().put(RedisConstant.ONLINE_KEY, monitor.getNo(), map); |
| | | monitor.setCheckCount(checkTimes); |
| | | monitor.setOffLineCount(offLineTimes); |
| | | |
| | | return monitor; |
| | | } |
| | | |