From 8669c5df500f04b0902a83b772058257dfd193bd Mon Sep 17 00:00:00 2001 From: Stephen Papierski Date: Sun, 29 Oct 2023 12:28:49 -0600 Subject: [PATCH] Add slow response notification resend interval to db/gui --- .../2023-10-26-slow-response-notification.js | 2 ++ src/pages/EditMonitor.vue | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/db/knex_migrations/2023-10-26-slow-response-notification.js b/db/knex_migrations/2023-10-26-slow-response-notification.js index 0c33ff993..892703962 100644 --- a/db/knex_migrations/2023-10-26-slow-response-notification.js +++ b/db/knex_migrations/2023-10-26-slow-response-notification.js @@ -6,6 +6,7 @@ exports.up = function (knex) { table.integer("slow_response_notification_threshold").defaultTo(0); table.integer("slow_response_notification_range").defaultTo(0); table.string("slow_response_notification_method").defaultTo(""); + table.integer("slow_response_notification_resend_interval").defaultTo(0); }); } @@ -16,5 +17,6 @@ exports.down = function (knex) { table.integer("slow_response_notification_threshold").defaultTo(0); table.integer("slow_response_notification_range").defaultTo(0); table.string("slow_response_notification_method").defaultTo(""); + table.integer("slow_response_notification_resend_interval").defaultTo(0); }); } diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 78e7417a5..eebb52dc1 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -465,6 +465,15 @@ +
+ + +
+

{{ $t("Advanced") }}

@@ -939,6 +948,7 @@ const monitorDefaults = { slowResponseNotificationThreshold: 5000, slowResponseNotificationRange: 60, slowResponseNotificationMethod: "average", + slowResponseNotificationResendInterval: 0, }; export default {