Added threshould to server contacts alerts

This commit is contained in:
Matteo Biscosi 2021-04-14 11:18:59 +02:00
parent 830d71c877
commit 71616b300e
6 changed files with 36 additions and 8 deletions

View file

@ -14,13 +14,20 @@ local ntp_contacts = {
default_enabled = false,
default_value = {
severity = alert_severities.error,
operator = "gt",
threshold = 5,
severity = alert_severities.error,
},
gui = {
i18n_title = "alerts_thresholds_config.ntp_contacts_title",
i18n_description = "alerts_thresholds_config.ntp_contacts_description",
}
i18n_field_unit = user_scripts.field_units.contacts,
input_builder = "threshold_cross",
field_max = 65535,
field_min = 1,
field_operator = "gt";
}
}
-- #################################################################