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
|
|
@ -11,7 +11,7 @@ local alert_keys = require "alert_keys"
|
|||
-- @param event_type The string with the type of event
|
||||
-- @param msg_details The details of the event
|
||||
-- @return A table with the alert built
|
||||
local function buildProcessNotification(alert_severity, event_type, msg_details)
|
||||
local function createProcessNotification(alert_severity, event_type, msg_details)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_type_params = {
|
||||
|
|
@ -46,5 +46,5 @@ return {
|
|||
i18n_title = "alerts_dashboard.process",
|
||||
i18n_description = processNotificationFormatter,
|
||||
icon = "fas fa-truck",
|
||||
builder = buildProcessNotification,
|
||||
creator = createProcessNotification,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue