mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed JSON formatting in webhook notifications (#8782)
* Moved active hosts page from interface to hosts, improved tooltip * Fixed missing JSON formatting webhook notifications
This commit is contained in:
parent
c3f8a468f4
commit
da3252a565
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ local function formatAlertMsg(alert)
|
|||
if json_decoded and json_decoded.flow_risk_info then
|
||||
json_decoded.flow_risk_info = json.decode(json_decoded.flow_risk_info)
|
||||
end
|
||||
if json_decoded and json_decoded.alert_generation.flow_risk_info then
|
||||
json_decoded.alert_generation.flow_risk_info = json.decode(json_decoded.alert_generation.flow_risk_info)
|
||||
end
|
||||
decoded_alert.json = json_decoded
|
||||
decoded_alert.metadata = {}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue