Implemented ingress traffic Sankey with ASN source data (#9308)

Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com>
This commit is contained in:
Manuel Ceroni 2025-06-24 17:50:11 +02:00 committed by GitHub
parent 4dc0a3113b
commit 487d1f2270
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 307 additions and 1 deletions

View file

@ -1502,6 +1502,11 @@ end
-- #################################################################
function validateSankeyAsCriteria(criteria)
return (criteria == 'ingress_traffic_criteria' or criteria == 'egress_traffic_criteria')
end
-- #################################################################
function validateToken(token)
if (not token) then
return false
@ -2072,6 +2077,7 @@ local known_parameters = {
["search_flows"] = validateBool, -- When set, a flow search should be performed
["custom_column"] = validateCustomColumn,
["criteria"] = validateSankeyCriteria,
["criteria_as"] = validateSankeyAsCriteria,
["aggregation_criteria"] = validateSingleWord,
["row_id"] = validateUnquoted, -- A number used to identify a record in a database
["rrd_file"] = validateUnquoted, -- A path or special identifier to read an RRD file