mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add alert category column and filter to alerts
This commit is contained in:
parent
68046aafa8
commit
fcdfaa04b0
8 changed files with 62 additions and 4 deletions
|
|
@ -327,6 +327,18 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function checks.getCategoryById(id)
|
||||
for cat_k, cat_v in pairs(checks.check_categories) do
|
||||
if cat_v["id"] == id then
|
||||
return cat_v
|
||||
end
|
||||
end
|
||||
|
||||
return checks.check_categories.other
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Given a subdir, returns the corresponding script type
|
||||
function checks.getScriptType(search_subdir)
|
||||
for _, script_type in pairs(checks.script_types) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue