add hardware monitor notification checking to jobQueue
This commit is contained in:
1 parent
e52c55bf2f
commit
b96648b155
1 file changed
+9
@@ -166,6 +166,15 @@ class JobQueue {
|
|||||||
const { monitor, statusChanged, prevStatus } =
|
const { monitor, statusChanged, prevStatus } =
|
||||||
await this.statusService.updateStatus(networkResponse);
|
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 status hasn't changed, we're done
|
||||||
if (statusChanged === false) return;
|
if (statusChanged === false) return;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user