up(agent): 不间断上报信息为报警作准备

This commit is contained in:
naiba
2020-12-19 23:27:59 +08:00
parent fcbd564bff
commit ad4fedaa9b
7 changed files with 20 additions and 65 deletions

View File

@@ -9,7 +9,7 @@
<title>{{.Title}}</title>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.1/dist/semantic.min.css">
<link rel="stylesheet" type="text/css" href="/static/semantic-ui-alerts.min.css">
<link rel="stylesheet" type="text/css" href="/static/main.css?v202012091024">
<link rel="stylesheet" type="text/css" href="/static/main.css?v202012192326">
<link rel="shortcut icon" type="image/png" href="/static/logo.png" />
</head>

View File

@@ -164,11 +164,6 @@
time: '2',
position: 'top-center',
});
ws.send('track');
setInterval(() => {
ws.send('track');
console.log('追加监控时间')
}, 1000 * 60 * 6);
}
ws.onmessage = function (evt) {
const oldServers = statusCards.servers

View File

@@ -227,11 +227,6 @@
time: '2',
position: 'top-center',
});
ws.send('track');
setInterval(() => {
ws.send('track');
console.log('追加监控时间')
}, 1000 * 60 * 6);
}
ws.onmessage = function (evt) {
statusCards.servers = JSON.parse(evt.data)