aboutsummaryrefslogtreecommitdiff
path: root/schema/flow_event_schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'schema/flow_event_schema.json')
-rw-r--r--schema/flow_event_schema.json15
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,