mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
Don't check for slow response unless monitor is UP
This commit is contained in:
parent
d5e680594c
commit
77dc2dd154
1 changed files with 5 additions and 0 deletions
|
@ -1432,6 +1432,11 @@ class Monitor extends BeanModel {
|
|||
*/
|
||||
async checkSlowResponseNotification(monitor, bean) {
|
||||
|
||||
if (bean.status !== UP) {
|
||||
log.debug("monitor", `[${this.name}] Monitor status is not UP, skipping slow response check`);
|
||||
return;
|
||||
}
|
||||
|
||||
const method = monitor.slowResponseNotificationMethod;
|
||||
const thresholdMethod = monitor.slowResponseNotificationThresholdMethod;
|
||||
const thresholdMultipler = monitor.slowResponseNotificationThresholdMultiplier;
|
||||
|
|
Loading…
Add table
Reference in a new issue