Initial work to add user script templates

This commit is contained in:
Simone Mainardi 2021-02-19 12:54:42 +01:00
parent 7493b02a07
commit 1dd93e7845
8 changed files with 36 additions and 18 deletions

View file

@ -116,6 +116,8 @@ result.filters = user_scripts.getDefaultFilters(interface.getId(), subdir, scrip
-------------------------------
local hooks_config = user_scripts.getScriptConfig(config_set, script, subdir)
-- script.template:render(hooks_config)
for hook, config in pairs(hooks_config) do
local granularity_info = alert_consts.alerts_granularities[hook]
local label = nil