Adds interface throughput check

This commit is contained in:
Simone Mainardi 2021-10-15 14:46:59 +02:00
parent bf24680fdc
commit a63c1dc957
3 changed files with 48 additions and 2 deletions

View file

@ -65,7 +65,7 @@ function alert_threshold_cross.format(ifid, alert, alert_type_params)
granularity = engine_label,
metric = alert_type_params.metric,
entity = entity,
value = format_utils.formatValue(alert_type_params.value),
value = format_utils.formatValue(format_utils.round(alert_type_params.value, 2)),
op = "&".. (alert_type_params.operator or "gt") ..";",
threshold = format_utils.formatValue(alert_type_params.threshold),
})