mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Refactors alrt builders into creators
Refactors builders into creators: calls
This commit is contained in:
parent
00c5e9f909
commit
290175b16f
75 changed files with 158 additions and 158 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue