diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-02-17 14:00:10 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-02-17 14:00:10 +0100 |
commit | a1805eb89195f9079105a5b256395306c42ede95 (patch) | |
tree | 7fa56a09a7a0ce4a07df8d7d550dc1e80dd60ddc /schema/daemon_event_schema.json | |
parent | 893f43705132dfeb64dd33dc8697193f463708c0 (diff) |
Added JSON schema files and a Python schema validator.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'schema/daemon_event_schema.json')
-rw-r--r-- | schema/daemon_event_schema.json | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/schema/daemon_event_schema.json b/schema/daemon_event_schema.json new file mode 100644 index 000000000..020b55161 --- /dev/null +++ b/schema/daemon_event_schema.json @@ -0,0 +1,67 @@ +{ + "type": "object", + "required": [ + "alias", + "source", + "thread_id", + "packet_id", + "daemon_event_id", + "daemon_event_name" + ], + "properties": { + "alias": { + "type": "string" + }, + "source": { + "type": "string" + }, + "thread_id": { + "type": "number", + "minimum": 0, + "maximum": 31 + }, + "packet_id": { + "type": "number", + "minimum": 1 + }, + "daemon_event_id": { + "type": "number", + "minimum": 0, + "maximum": 3 + }, + "daemon_event_name": { + "type": "string", + "enum": [ + "invalid", + "init", + "reconnect", + "shutdown" + ] + }, + "max-flows-per-thread": { + "type": "number" + }, + "max-idle-flows-per-thread": { + "type": "number" + }, + "tick-resolution": { + "type": "number" + }, + "reader-thread-count": { + "type": "number" + }, + "idle-scan-period": { + "type": "number" + }, + "max-idle-time": { + "type": "number" + }, + "tcp-max-post-end-flow-time": { + "type": "number" + }, + "max-packets-per-flow-to-send": { + "type": "number" + } + }, + "additionalProperties": false +} |