mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Add flow alerts score column
This commit is contained in:
parent
8044aaa3a7
commit
9d59aa67be
2 changed files with 20 additions and 2 deletions
|
|
@ -293,6 +293,8 @@ function performAlertsQuery(statement, what, opts, force_query, group_by)
|
|||
order_by = "alert_type"
|
||||
elseif opts.sortColumn == "column_count" and what ~= "engaged" then
|
||||
order_by = "alert_counter"
|
||||
elseif opts.sortColumn == "column_score" and what ~= "engaged" then
|
||||
order_by = "score"
|
||||
elseif((opts.sortColumn == "column_duration") and (what == "historical")) then
|
||||
order_by = "(alert_tstamp_end - alert_tstamp)"
|
||||
else
|
||||
|
|
@ -1561,6 +1563,16 @@ function toggleAlert(disable) {
|
|||
}
|
||||
},
|
||||
|
||||
{
|
||||
title: "]]print(i18n("score"))print[[",
|
||||
field: "column_score",
|
||||
hidden: ]] print(ternary(t["status"] ~= "historical-flows", "true", "false")) print[[,
|
||||
sortable: true,
|
||||
css: {
|
||||
textAlign: 'center'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
title: "]]print(i18n("drilldown"))print[[",
|
||||
field: "column_chart",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue