mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Implements #4919 custom alert severity
This commit is contained in:
parent
89b21df6f6
commit
10fb8bbecc
64 changed files with 317 additions and 49 deletions
|
|
@ -14,6 +14,10 @@ local script = {
|
|||
-- This script is only for alerts generation
|
||||
is_alert = true,
|
||||
|
||||
default_value = {
|
||||
severity = alert_severities.error,
|
||||
},
|
||||
|
||||
-- See below
|
||||
hooks = {},
|
||||
|
||||
|
|
@ -42,7 +46,7 @@ local function dropped_alerts_check(params)
|
|||
delta_drops
|
||||
)
|
||||
|
||||
alert:set_severity(alert_severities.error)
|
||||
alert:set_severity(params.user_script_config.severity)
|
||||
alert:set_granularity(params.granularity)
|
||||
|
||||
if(delta_drops > 0) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue