ntopng/scripts/plugins/example/alert_endpoints/prefs_entries.lua
2020-01-08 23:52:51 +01:00

23 lines
761 B
Lua

--
-- (C) 2019-20 - ntop.org
--
-- This file contains extends the "Alert Endpoints" preferences menu with
-- custom entries, with full "Search Preferences" support.
return {
-- The alert endpoint linked to this preferences. This is required in order
-- to populate the actual menu via the "printPrefs" callback.
endpoint_key = "example",
-- Defines the additional menu entries
entries = {
-- The menu entry ID. Will be referenced in the endpoint "printPrefs" callback.
toggle_example_notification = {
-- A brief title for the preference
title = i18n("example.toggle_example_notification_title"),
-- The preference description
description = i18n("example.toggle_example_notification_description"),
},
}
}