mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +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
|
|
@ -75,7 +75,7 @@ local function check_allowed_mac(params)
|
|||
mac
|
||||
)
|
||||
|
||||
alert:set_severity(alert_severities.warning)
|
||||
alert:set_severity(params.user_script_config.severity)
|
||||
|
||||
alert:store(alerts_api.macEntity(mac))
|
||||
end
|
||||
|
|
@ -97,6 +97,7 @@ script = {
|
|||
|
||||
-- Specify the default value whe clicking on the "Reset Default" button
|
||||
default_value = {
|
||||
severity = alert_severities.warning,
|
||||
items = {},
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue