nDPId/schema/daemon_event_schema.json
Toni Uhlig 4e583cd4de
Added JSON schema validation to run_tests.sh
* Python3 scripts are now compatible with versions <3.6
 * improved and prettified run_tests.sh

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2021-04-09 14:12:48 +02:00

70 lines
1.5 KiB
JSON

{
"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": 0
},
"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-process": {
"type": "number"
},
"max-packets-per-flow-to-send": {
"type": "number"
}
},
"additionalProperties": false
}