add hardware monitor notification checking to jobQueue

This commit is contained in:
Alex Holliday committed 2024-11-22 11:55:31 +08:00
1 parent e52c55bf2f
commit b96648b155
1 file changed
+9
+9
View File
@@ -166,6 +166,15 @@ class JobQueue {
const { monitor, statusChanged, prevStatus } =
await this.statusService.updateStatus(networkResponse);
// If this is an infrastructure monitor, we need to check for thresholds
if (monitor.type === "hardware") {
await this.notificationService.handleInfrastructureNotifications({
...networkResponse,
monitor,
prevStatus,
});
}
//If status hasn't changed, we're done
if (statusChanged === false) return;