Mark alerts-only user scripts

Such scripts are not even loaded when alerts are disabled
This commit is contained in:
emanuele-f 2019-12-12 18:36:41 +01:00
parent 52df5b25dc
commit e3052f4b63
35 changed files with 102 additions and 1 deletions

View file

@ -9,6 +9,9 @@ local script = {
default_enabled = true,
anomaly_type_builder = alerts_api.slowStatsUpdateType,
-- This script is only for alerts generation
is_alert = true,
hooks = {
min = alerts_api.anomaly_check_function,
},