Refactors alrt builders into creators

Refactors builders into creators: calls
This commit is contained in:
Simone Mainardi 2020-04-27 15:36:34 +02:00
parent 00c5e9f909
commit 290175b16f
75 changed files with 158 additions and 158 deletions

View file

@ -10,7 +10,7 @@ local alert_keys = require "alert_keys"
-- @param alert_severity A severity as defined in `alert_consts.alert_severities`
-- @param info A generic table decoded from a JSON originated at the external alert source
-- @return A table with the alert built
local function buildExternal(alert_severity, info)
local function createExternal(alert_severity, info)
local built = {
alert_severity = alert_severity,
alert_type_params = info,
@ -25,5 +25,5 @@ return {
alert_key = alert_keys.ntopng.alert_external,
i18n_title = "alerts_dashboard.external_alert",
icon = "fas fa-eye",
builder = buildExternal,
creator = createExternal,
}