mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29: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
|
|
@ -16,8 +16,8 @@ local format_utils = require("format_utils")
|
|||
-- @param remote_addr The ip address of the remote user when available
|
||||
-- @param status A string indicating the action status or nil
|
||||
-- @return A table with the alert built
|
||||
local function buildUserActivity(alert_severity, scope, name, params, remote_addr, status)
|
||||
local builder = {
|
||||
local function createUserActivity(alert_severity, scope, name, params, remote_addr, status)
|
||||
local creator = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {
|
||||
scope = scope,
|
||||
|
|
@ -28,7 +28,7 @@ local function buildUserActivity(alert_severity, scope, name, params, remote_add
|
|||
}
|
||||
}
|
||||
|
||||
return builder
|
||||
return creator
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
|
@ -248,5 +248,5 @@ return {
|
|||
i18n_title = "alerts_dashboard.user_activity",
|
||||
i18n_description = userActivityFormatter,
|
||||
icon = "fas fa-user",
|
||||
builder = buildUserActivity,
|
||||
creator = createUserActivity,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue