mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +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
|
|
@ -9,6 +9,7 @@ local os_utils = require("os_utils")
|
|||
local categories_utils = require("categories_utils")
|
||||
local json = require("dkjson")
|
||||
local alerts_api = require("alerts_api")
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require "alert_consts"
|
||||
|
||||
-- ##############################################
|
||||
|
|
@ -360,7 +361,7 @@ local function checkListsUpdate(timeout)
|
|||
alerts_api.store(
|
||||
alerts_api.categoryListsEntity(list_name),
|
||||
alert_consts.alert_types.alert_list_download_succeeded.create(
|
||||
alert_consts.alert_severities.notice,
|
||||
alert_severities.notice,
|
||||
list_name
|
||||
)
|
||||
)
|
||||
|
|
@ -393,7 +394,7 @@ local function checkListsUpdate(timeout)
|
|||
alerts_api.store(
|
||||
alerts_api.categoryListsEntity(list_name),
|
||||
alert_consts.alert_types.alert_list_download_failed.create(
|
||||
alert_consts.alert_severities.error,
|
||||
alert_severities.error,
|
||||
list_name,
|
||||
last_error
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue