mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 08:29:36 +00:00
Added confidence filter to alerts
This commit is contained in:
parent
69b9e6337e
commit
4b7edebc71
5 changed files with 53 additions and 6 deletions
|
|
@ -5373,9 +5373,14 @@ function format_confidence_from_json(record)
|
|||
|
||||
if record["ALERT_JSON"] then
|
||||
alert_json = json.decode(record["ALERT_JSON"])
|
||||
elseif record["json"] then
|
||||
alert_json = json.decode(record["json"])
|
||||
end
|
||||
|
||||
if (alert_json.proto) and (alert_json.proto.confidence) and (not isEmptyString(alert_json.proto.confidence)) then
|
||||
if (alert_json) and
|
||||
(alert_json.proto) and
|
||||
(alert_json.proto.confidence) and
|
||||
(not isEmptyString(alert_json.proto.confidence)) then
|
||||
confidence = get_confidence(alert_json.proto.confidence)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue