mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Remove alert name column, improve description
This commit is contained in:
parent
ddc3c3de6b
commit
c7fa2a458d
8 changed files with 34 additions and 32 deletions
|
|
@ -949,6 +949,10 @@ function alert_utils.formatAlertMessage(ifid, alert, alert_json, skip_live_data)
|
|||
end
|
||||
end
|
||||
|
||||
if isEmptyString(msg) then
|
||||
msg = alert_consts.alertTypeLabel(tonumber(alert.alert_id), true --[[ no_html --]], alert.entity_id)
|
||||
end
|
||||
|
||||
return(msg or "")
|
||||
end
|
||||
|
||||
|
|
@ -971,6 +975,10 @@ function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, skip_live_d
|
|||
msg = description(ifid, alert, msg)
|
||||
end
|
||||
|
||||
if isEmptyString(msg) then
|
||||
msg = alert_consts.alertTypeLabel(tonumber(alert.alert_id), true --[[ no_html --]], alert_entities.flow.entity_id)
|
||||
end
|
||||
|
||||
return msg or ""
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue