Add flow alerts score column

This commit is contained in:
emanuele-f 2020-02-10 11:34:04 +01:00
parent 8044aaa3a7
commit 9d59aa67be
2 changed files with 20 additions and 2 deletions

View file

@ -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",