mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Alerts API class name change
This commit is contained in:
parent
9d8fded73c
commit
5d7abd0b53
1 changed files with 5 additions and 6 deletions
|
|
@ -12,11 +12,11 @@ local alert = require "alert"
|
|||
|
||||
-- ##############################################
|
||||
|
||||
local NewHostAlert = classes.class(alert)
|
||||
local alert_host_new_api_demo = classes.class(alert)
|
||||
|
||||
-- ##############################################
|
||||
|
||||
NewHostAlert.meta = {
|
||||
alert_host_new_api_demo.meta = {
|
||||
alert_key = alert_keys.user.alert_user_04,
|
||||
i18n_title = "New Host API Demo",
|
||||
icon = "fas fa-exclamation",
|
||||
|
|
@ -28,8 +28,7 @@ NewHostAlert.meta = {
|
|||
-- @param one_param The first alert param
|
||||
-- @param another_param The second alert param
|
||||
-- @return A table with the alert built
|
||||
function NewHostAlert:init(one_param, another_param)
|
||||
-- Optional, call to the `alert` constructor
|
||||
function alert_host_new_api_demo:init(one_param, another_param)
|
||||
self.super:init()
|
||||
|
||||
self.alert_type_params = {
|
||||
|
|
@ -40,10 +39,10 @@ end
|
|||
|
||||
-- #######################################################
|
||||
|
||||
function NewHostAlert:format()
|
||||
function alert_host_new_api_demo:format()
|
||||
-- tprint("new format: "..self.def_script.alert_key)
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
||||
return NewHostAlert
|
||||
return alert_host_new_api_demo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue