Implement store_report in the dashboard component

This commit is contained in:
Alfredo Cardigliano 2023-08-23 10:53:41 +02:00
parent 98504cc1b4
commit a7bf6accc3
3 changed files with 43 additions and 14 deletions

View file

@ -1842,6 +1842,7 @@ local known_parameters = {
["flow_hash_id"] = validateNumber, -- The ID uniquely identifying the flow in the hash table
["user"] = validateSingleWord, -- The user ID
["snapshot_name"] = validateSingleWord, -- The user ID
["report_name"] = validateSingleWord, -- The report name
["pool"] = validateNumber, -- A pool ID
["pool_id"] = validateNumber, -- A pool ID
["direction"] = validateDirection, -- Sent or Received direction
@ -2515,6 +2516,7 @@ local known_parameters = {
["payload"] = {jsonCleanup, validateJSON},
["JSON"] = {jsonCleanup, validateJSON},
["host_threshold_rules"] = {jsonCleanup, validateJSON},
["content"] = {jsonCleanup, validateJSON},
-- POST pcap
["pcap"] = validatePcap,