mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39: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
|
|
@ -11,7 +11,7 @@ local alert_keys = require "alert_keys"
|
|||
-- @param alert_granularity A granularity as defined in `alert_consts.alerts_granularities`
|
||||
-- @param device_ip A string with the ip address of the snmp device
|
||||
-- @return A table with the alert built
|
||||
local function buildDeviceReset(alert_severity, alert_granularity, device_ip)
|
||||
local function createDeviceReset(alert_severity, alert_granularity, device_ip)
|
||||
local built = {
|
||||
alert_severity = alert_severity,
|
||||
alert_granularity = alert_granularity,
|
||||
|
|
@ -40,5 +40,5 @@ return {
|
|||
i18n_title = "alerts_dashboard.alert_snmp_device_reset_title",
|
||||
i18n_description = snmpDeviceResetFormatter,
|
||||
icon = "fas fa-power-off",
|
||||
builder = buildDeviceReset,
|
||||
creator = createDeviceReset,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue