implement port monitoring

This commit is contained in:
Alex Holliday committed 2025-11-21 20:03:03 +00:00
1 parent caa863afe8
commit 5d825537ae
10 files changed
+195 -47

No files matched your search

@@ -188,6 +188,8 @@ class CheckService implements ICheckService {
case "ping":
return this.buildBaseCheck(statusResponse);
case "port":
return this.buildBaseCheck(statusResponse);
default:
throw new Error(`Unsupported monitor type: ${type}`);
}
@@ -657,7 +657,7 @@ class MonitorService implements IMonitorService {
export = async (teamId: string) => {
return Monitor.find({ teamId })
.select("name url type interval n secret -_id")
.select("name url port type interval n secret -_id")
.lean();
};