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

@ -9,7 +9,7 @@ local alert_keys = require "alert_keys"
-- @brief Prepare an alert table used to generate the alert
-- @param alert_severity A severity as defined in `alert_consts.alert_severities`
-- @return A table with the alert built
local function buildFlowBlocked(alert_severity)
local function createFlowBlocked(alert_severity)
local built = {
alert_severity = alert_severity,
alert_type_params = {
@ -25,5 +25,5 @@ return {
alert_key = alert_keys.ntopng.alert_flow_blocked,
i18n_title = "alerts_dashboard.blocked_flow",
icon = "fas fa-ban",
builder = buildFlowBlocked,
creator = createFlowBlocked,
}