mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
26 lines
902 B
Lua
26 lines
902 B
Lua
--
|
|
-- (C) 2019-20 - ntop.org
|
|
--
|
|
|
|
local alert_keys = require "alert_keys"
|
|
|
|
-- This file defines a new alert, with key "alert_example" (the file name)
|
|
-- Alerts can be triggered by the user scripts located into the "user_scripts"
|
|
-- directory of the plugin.
|
|
|
|
return {
|
|
alert_key = alert_keys.ntopng.alert_example,
|
|
-- The name associated to this alert. Localized strings are defined in
|
|
-- example/locales/en.lua
|
|
i18n_title = "example.alert_title",
|
|
|
|
-- An icon (css class name) associated to this alert. ntopng supports icons
|
|
-- from https://fontawesome.com .
|
|
icon = "fas fa-exclamation",
|
|
|
|
-- An optional alert message to show when the alert is triggered. For flow
|
|
-- alerts, however, the alert message is defined into the status associated
|
|
-- to the alert, which is example/status_definitions/status_example.lua for
|
|
-- this plugin.
|
|
i18n_description = "example.alert_description",
|
|
}
|