mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Implements constant flow and alert ids
Enlarges AlertType size Changes alerts database
This commit is contained in:
parent
577a82d2eb
commit
4177ee61ab
64 changed files with 352 additions and 56 deletions
|
|
@ -2,11 +2,14 @@
|
|||
-- (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",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
|
||||
local status_keys = require "flow_keys"
|
||||
|
||||
local alert_consts = require("alert_consts")
|
||||
|
||||
-- This file defines a new flow status, with key "status_example" (the file name).
|
||||
|
|
@ -23,6 +25,7 @@ end
|
|||
-- #################################################################
|
||||
|
||||
return {
|
||||
status_key = status_keys.ntopng.status_example,
|
||||
-- alert_type: the alert type associated to this status
|
||||
-- alert_severity: the alert severity associated to this status
|
||||
-- i18n_title: a localization string for the status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue