Don't check for slow response unless monitor is UP

This commit is contained in:
Stephen Papierski 2023-11-08 15:22:08 -07:00
parent d5e680594c
commit 77dc2dd154
No known key found for this signature in database

View file

@ -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;