Cleanup of the too-many-drops interface alert

This commit is contained in:
emanuele-f 2019-08-27 13:03:44 +02:00
parent e46221e0bb
commit b3bdfcff32
9 changed files with 41 additions and 126 deletions

View file

@ -815,12 +815,14 @@ end
-- ##############################################
function alerts_api.tooManyDropsType()
function alerts_api.tooManyDropsType(drops, drop_perc, threshold)
return({
alert_type = alert_consts.alert_types.too_many_drops,
alert_severity = alert_consts.alert_severities.error,
alert_granularity = alert_consts.alerts_granularities.min,
alert_type_params = {},
alert_type_params = {
drops = drops, drop_perc = drop_perc, edge = threshold,
},
})
end