mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes unexpected host behaviour alert error
This commit is contained in:
parent
4013e17ace
commit
d27d5b0439
3 changed files with 14 additions and 12 deletions
|
|
@ -49,17 +49,19 @@ end
|
|||
-- @param alert_type_params Table `alert_type_params` as built in the `:init` method
|
||||
-- @return A human-readable string
|
||||
function alert_unexpected_behaviour.format(ifid, alert, alert_type_params)
|
||||
return(i18n("alerts_dashboard.unexpected_host_behavior_description",
|
||||
local alert_consts = require("alert_consts")
|
||||
|
||||
return(i18n("alerts_dashboard.unexpected_host_behavior_description",
|
||||
{
|
||||
host = firstToUpper(alert_consts.formatAlertEntity(ifid, alert_consts.alertEntityRaw(alert["alert_entity"]), alert["alert_entity_val"])),
|
||||
type_of_behaviour = alert_type_params.type_of_behaviour,
|
||||
value = alert_type_params.value,
|
||||
prediction = alert_type_params.prediction,
|
||||
upper_bound = alert_type_params.upper_bound,
|
||||
lower_bound = alert_type_params.lower_bound,
|
||||
prediction = alert_type_params.prediction or 0,
|
||||
upper_bound = alert_type_params.upper_bound or 0,
|
||||
lower_bound = alert_type_params.lower_bound or 0,
|
||||
}))
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
||||
return alert_unexpected_behaviour
|
||||
return alert_unexpected_behaviour
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue