mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-20 14:02:34 +02:00
adding PENDING -> MAINTENANCE as important for notification.
This commit is contained in:
parent
f5c10dd848
commit
fcd903e174
1 changed files with 2 additions and 0 deletions
|
@ -1255,6 +1255,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
|
||||||
|
@ -1270,6 +1271,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue