[PATCH proxmox-backup v7 30/34] api/ui: notifications: add 'thresholds' as notification type value

Christian Ebner
2026-04-01T13:48:42Z

Allows to add notification rules regarding thresholds by matching
using this new notification type value. By adding it to the list
here, the value can be selected in the notification matcher edit
window in the UI. The user facing comment is finally defined in the
utils.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Reviewed-by: Hannes Laimer <h.laimer@proxmox.com>
Tested-by: Hannes Laimer <h.laimer@proxmox.com>
---
src/api2/config/notifications/mod.rs | 1 +
www/Utils.js | 1 +
2 files changed, 2 insertions(+)

diff --git a/src/api2/config/notifications/mod.rs b/src/api2/config/notifications/mod.rs
index 40fe4dfaa..2b94f715b 100644
--- a/src/api2/config/notifications/mod.rs
+++ b/src/api2/config/notifications/mod.rs
@@ -190,6 +190,7 @@ pub fn get_values(
"system-mail",
"tape-backup",
"tape-load",
+ "thresholds",
"verify",
] {
values.push(MatchableValue {
diff --git a/www/Utils.js b/www/Utils.js
index d2f3a3c99..6b10676af 100644
--- a/www/Utils.js
+++ b/www/Utils.js
@@ -483,6 +483,7 @@ Ext.define('PBS.Utils', {
sync: gettext('Sync job'),
'tape-backup': gettext('Tape backup notifications'),
'tape-load': gettext('Tape loading request'),
+ thresholds: gettext('Datastore threshold notifications'),
verify: gettext('Verification job'),
});

--
2.47.3