This commit is contained in:
Stephen Papierski 2023-11-28 14:27:46 -07:00
parent e4a2f7890b
commit 763925b9b9
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -1641,7 +1641,6 @@ class Monitor extends BeanModel {
Monitor.sendSlowResponseNotification(monitor, bean, slowStats); Monitor.sendSlowResponseNotification(monitor, bean, slowStats);
// Send notification every x times // Send notification every x times
} else if (this.slowResponseNotificationResendInterval > 0) { } else if (this.slowResponseNotificationResendInterval > 0) {
if (((bean.slowResponseCount) % this.slowResponseNotificationResendInterval) === 0) { if (((bean.slowResponseCount) % this.slowResponseNotificationResendInterval) === 0) {

View file

@ -53,7 +53,7 @@ class Slack extends NotificationProvider {
const textMsg = "Uptime Kuma Alert"; const textMsg = "Uptime Kuma Alert";
let color; let color;
switch(heartbeatJSON["status"]) { switch (heartbeatJSON["status"]) {
case UP: case UP:
case NOMINAL: case NOMINAL:
color = "#2eb886"; color = "#2eb886";
@ -62,7 +62,7 @@ class Slack extends NotificationProvider {
color = "#ffc107"; color = "#ffc107";
break; break;
case DOWN: case DOWN:
color = "#e01e5a" color = "#e01e5a";
break; break;
default: default:
color = "#0dcaf0"; color = "#0dcaf0";