Cleanup alert on score (lua)

This commit is contained in:
Alfredo Cardigliano 2021-05-05 16:26:46 +02:00
parent 77bd43765c
commit fd977d4924
2 changed files with 0 additions and 104 deletions

View file

@ -1,37 +0,0 @@
--
-- (C) 2019-21 - ntop.org
--
local user_scripts = require ("user_scripts")
local alert_severities = require "alert_severities"
local host_alert_keys = require "host_alert_keys"
-- #################################################################
local host_score = {
-- Script category
category = user_scripts.script_categories.security,
default_enabled = false,
alert_id = host_alert_keys.host_alert_score,
default_value = {
-- "> 1000"
operator = "gt",
threshold = 4096,
severity = alert_severities.error,
},
gui = {
i18n_title = "score",
i18n_description = "alerts_dashboard.host_score_description",
input_builder = "threshold_cross",
field_max = 65535,
field_min = 0,
field_operator = "gt",
}
}
-- #################################################################
return host_score