mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added HTTP method to HTTP alerts (#5988)
This commit is contained in:
parent
e13d33ec17
commit
d01358cc36
3 changed files with 17 additions and 1 deletions
|
|
@ -4624,6 +4624,18 @@ function addScoreToAlertDescr(msg, score)
|
|||
format_utils.formatValue(score)))
|
||||
end
|
||||
|
||||
function addHTTPInfoToAlertDescr(msg, alert_json)
|
||||
if (alert_json)
|
||||
and (table.len(alert_json["http"]) > 0)
|
||||
and (alert_json["http"]["protos.http.last_method"])then
|
||||
msg = msg .. string.format(" [%s: %s]",
|
||||
i18n("last_http_method"),
|
||||
alert_json["http"]["protos.http.last_method"])
|
||||
end
|
||||
|
||||
return msg
|
||||
end
|
||||
|
||||
-- #####################
|
||||
|
||||
local iec104_typeids = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue