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:
GabrieleDeri 2024-10-29 07:36:42 +01:00 committed by GitHub
parent c3f8a468f4
commit da3252a565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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