wip: frontend header & overall status

This commit is contained in:
lyc8503 committed 2023-10-15 02:00:29 +08:00
1 parent cdd43685f2
commit f9212c88a6
13 files changed
+1002 -403

No files matched your search

+4
View File
@@ -19,6 +19,7 @@ async function getStatus(monitor: MonitorTarget): Promise<{ ping: number; up: bo
if (monitor.method === "TCP_PING") {
// TCP port endpoint monitor
// TODO: TCP timeout
try {
const [hostname, port] = monitor.target.split(":")
@@ -90,6 +91,9 @@ export default {
state.overallUp = 0
// Check each monitor
// TODO: callback exception handler
// TODO: advanced status check
// TODO: concurrent status check
for (const monitor of config.monitors) {
console.log(`[${workerLocation}] Checking ${monitor.name}...`)