mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +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 buildLoginFailedType(alert_severity)
|
||||
local function createLoginFailedType(alert_severity)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {
|
||||
|
|
@ -35,5 +35,5 @@ return {
|
|||
i18n_title = "alerts_dashboard.login_failed",
|
||||
i18n_description = loginFailedFormatter,
|
||||
icon = "fas fa-sign-in",
|
||||
builder = buildLoginFailedType,
|
||||
creator = createLoginFailedType,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue