ntopng/scripts/plugins/example/alert_endpoints/prefs_entries.lua
emanuele-f 2047386431 Implement alert_endpoints and http_lint plugin extensions
Alert endpoints can now be loaded via custom plugins.
It's now possible to extend the http_lint parameters with custom parameters and validators.
2019-12-19 12:44:39 +01:00

23 lines
758 B
Lua

--
-- (C) 2019 - 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"),
},
}
}