Authored by qinchao

docker监控时间点扩大

@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 select 31 select
32 <include refid="Base_Column_List" /> 32 <include refid="Base_Column_List" />
33 from docker_jenkins_record 33 from docker_jenkins_record
34 - where update_callback_time>=DATE_SUB(NOW(),INTERVAL 3 MINUTE) 34 + where update_callback_time>=DATE_SUB(NOW(),INTERVAL 10 MINUTE)
35 </select> 35 </select>
36 36
37 37
@@ -116,7 +116,7 @@ public class DockerMonitorTask { @@ -116,7 +116,7 @@ public class DockerMonitorTask {
116 boolean alarmFlag=true; 116 boolean alarmFlag=true;
117 117
118 logger.info("DockerMonitorTask status is {} ", status); 118 logger.info("DockerMonitorTask status is {} ", status);
119 - //从docker发布记录中检索,3分钟内的数据 119 + //从docker发布记录中检索,10分钟内的数据
120 List<DockerJenkinsRecord> records=dockerJenkinsRecordMapper.selectThreeMinutes(); 120 List<DockerJenkinsRecord> records=dockerJenkinsRecordMapper.selectThreeMinutes();
121 if(records!=null&&records.size()>0){ 121 if(records!=null&&records.size()>0){
122 logger.info("DockerMonitorTask record is {} ", JSON.toJSONString(records)); 122 logger.info("DockerMonitorTask record is {} ", JSON.toJSONString(records));