Implements #4919 custom alert severity

This commit is contained in:
Matteo Biscosi 2021-01-27 12:01:52 +01:00
parent 89b21df6f6
commit 10fb8bbecc
64 changed files with 317 additions and 49 deletions

View file

@ -613,7 +613,7 @@ function alerts_api.checkThresholdAlert(params, alert_type, value, attacker, vic
threshold_config.threshold
)
alert:set_severity(alert_severities.error)
alert:set_severity(threshold_config.severity)
alert:set_granularity(params.granularity)
alert:set_subtype(script.key)