Add alert category column and filter to alerts

This commit is contained in:
Alfredo Cardigliano 2023-06-21 09:58:41 +02:00
parent 68046aafa8
commit fcdfaa04b0
8 changed files with 62 additions and 4 deletions

View file

@ -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