diff --git a/server/model/monitor.js b/server/model/monitor.js index 06b0e54c4..ffdebde87 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -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); }