Implements #4919 custom alert severity

This commit is contained in:
Matteo Biscosi 2021-01-27 12:01:52 +01:00
parent 89b21df6f6
commit 10fb8bbecc
64 changed files with 317 additions and 49 deletions

View file

@ -34,7 +34,7 @@ local function check_interface_idle(params)
threshold
)
alert:set_severity(alert_severities.warning)
alert:set_severity(params.user_script_config.severity)
alert:set_granularity(params.granularity)
if max_idle_perc > threshold then
@ -55,6 +55,7 @@ local script = {
-- "> 50%"
operator = "gt",
threshold = 50,
severity = alert_severities.warning,
},
-- This script is only for alerts generation