adding PENDING -> MAINTENANCE as important for notification.

This commit is contained in:
Riccardo Crippa 2025-05-05 11:55:33 +02:00
parent bab93e5962
commit 0df6c46f3f

View file

@ -1256,6 +1256,7 @@ class Monitor extends BeanModel {
// PENDING -> PENDING = not important // PENDING -> PENDING = not important
// * PENDING -> DOWN = important // * PENDING -> DOWN = important
// PENDING -> UP = not important // PENDING -> UP = not important
// PENDING -> MAINTENANCE = important
// DOWN -> PENDING = this case not exists // DOWN -> PENDING = this case not exists
// DOWN -> DOWN = not important // DOWN -> DOWN = not important
// * DOWN -> UP = important // * DOWN -> UP = important
@ -1271,6 +1272,7 @@ class Monitor extends BeanModel {
(previousBeatStatus === DOWN && currentBeatStatus === MAINTENANCE) || (previousBeatStatus === DOWN && currentBeatStatus === MAINTENANCE) ||
(previousBeatStatus === UP && currentBeatStatus === DOWN) || (previousBeatStatus === UP && currentBeatStatus === DOWN) ||
(previousBeatStatus === DOWN && currentBeatStatus === UP) || (previousBeatStatus === DOWN && currentBeatStatus === UP) ||
(previousBeatStatus === PENDING && currentBeatStatus === MAINTENANCE) ||
(previousBeatStatus === PENDING && currentBeatStatus === DOWN); (previousBeatStatus === PENDING && currentBeatStatus === DOWN);
} }