[PATCH proxmox-backup v6 19/22] api/ui: notifications: add 'thresholds' as notification type value

Christian Ebner
2026-03-19T09:42:01Z

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>
---
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 c7c9870a0..b8bad4b1a 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