mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Refactors alert_severities into an independend Lua module
This commit is contained in:
parent
e683509dec
commit
b3dc39c641
109 changed files with 317 additions and 264 deletions
|
|
@ -2,6 +2,7 @@
|
|||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require("alert_consts")
|
||||
local alerts_api = require("alerts_api")
|
||||
|
||||
|
|
@ -98,7 +99,7 @@ function script.hooks.min(info)
|
|||
|
||||
local alert_info = {
|
||||
alert_type = alert_consts.alert_types.alert_example,
|
||||
alert_severity = alert_consts.alert_severities.notice,
|
||||
alert_severity = alert_severities.notice,
|
||||
alert_granularity = info.granularity,
|
||||
alert_type_params = {
|
||||
http_sent_bytes = bytes_delta,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue