diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-02-04 00:32:04 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-02-04 01:12:18 +0100 |
commit | 6fd6dff14d964aa8e5cf7ff3ec5a70c220ea61b4 (patch) | |
tree | 48a59cdf9cd204577fa7706d455de9c239e13dc6 /schema | |
parent | f9e4c5885423c6f5b3d8b46c1c872b9e9330b054 (diff) |
Added additional (minimalistic) detection information to flow updates.
This will only affect flows with the state `FT_FINISHED' (detection done).
* nDPIsrvd.py: force use of JSON schema Draft 7 validator
* flow-dash.py: gather/use total processed layer4 payload size
* flow-info.py: added additional event filter
* flow-info.py: prettified flow events printing whose detection is in progress
* py-semantic-validation.py: added validation checks for FT_FINISHED
* updated flow event JSON schema
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'schema')
-rw-r--r-- | schema/flow_event_schema.json | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/schema/flow_event_schema.json b/schema/flow_event_schema.json index 1a715dcc2..1e2751833 100644 --- a/schema/flow_event_schema.json +++ b/schema/flow_event_schema.json @@ -8,6 +8,7 @@ "flow_event_id", "flow_event_name", "flow_id", + "flow_state", "flow_packets_processed", "flow_first_seen", "flow_last_seen", @@ -39,6 +40,13 @@ "required": [ "ndpi" ] }, + "if": { + "properties": { "flow_state": { "enum": [ "finished" ] } } + }, + "then": { + "required": [ "ndpi" ] + }, + "properties": { "alias": { "type": "string" @@ -78,6 +86,13 @@ "type": "number", "minimum": 1 }, + "flow_state": { + "type": "string", + "enum": [ + "finished", + "info" + ] + }, "flow_datalink": { "type": "number", "minimum": 0, |