adding PENDING -> MAINTENANCE as important for notification.

This commit is contained in:
Riccardo Crippa 2025-05-05 11:55:33 +02:00
parent f5c10dd848
commit fcd903e174

View file

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