type only imports, add empty guard for threshold breaches do Docker monitors don't get this
This commit is contained in:
1 parent
11c89d150a
commit
f2c23636fe
4 files changed
+11
-4
No files matched your search
@@ -298,7 +298,7 @@ export class WorkerPipeline implements IWorkerPipeline {
|
||||
decision.incidentReason = "status_down";
|
||||
decision.notificationReason = "status_change";
|
||||
} else if (monitor.status === "breached") {
|
||||
decision.thresholdBreaches = statusChange.thresholdBreaches;
|
||||
if (statusChange.thresholdBreaches) decision.thresholdBreaches = statusChange.thresholdBreaches;
|
||||
decision.shouldCreateIncident = true;
|
||||
decision.shouldSendNotification = true;
|
||||
decision.incidentReason = "threshold_breach";
|
||||
|
||||
Reference in new issue
Block a user