From ce967ade5f87af8dc6c2898ddbbd5ea02c7d1341 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 19 Jun 2020 14:23:46 +0100 Subject: add jsonschema --- samples/dtail.schema.json | 119 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100755 samples/dtail.schema.json (limited to 'samples') diff --git a/samples/dtail.schema.json b/samples/dtail.schema.json new file mode 100755 index 0000000..68db788 --- /dev/null +++ b/samples/dtail.schema.json @@ -0,0 +1,119 @@ +{ + "$schema": "https://json-schema.org/2019-09/schema", + "description": "Schema for dtail.json", + "type": "object", + "properties": { + "Client": { + "properties": {}, + "additionalProperties": false + }, + "Server": { + "properties": { + "Schedule": { + "type": "array", + "items": { + "type": "object", + "properties": { + "Name": { + "type": "string" + }, + "Enable": { + "type": "boolean" + }, + "TimeRange": { + "type": "array", + "items": [ + { + "type": "integer" + }, + { + "type": "integer" + } + ] + }, + "Files": { + "type": "string" + }, + "Outfile": { + "type": "string" + }, + "Query": { + "type": "string" + } + } + } + }, + "HostKeyFile": { + "type": "string" + }, + "HostKeyBits": { + "type": "integer", + "minimum": 2048 + }, + "MapreduceLogFormat": { + "type": "string" + }, + "SSHBindAddress": { + "type": "string" + }, + "MaxConcurrentCats": { + "type": "integer", + "minimum": 1, + "maximum": 20 + }, + "MaxConcurrentTails": { + "type": "integer", + "minimum": 1, + "maximum": 100 + }, + "MaxConnections": { + "type": "integer", + "minimum": 1, + "maximum": 100 + }, + "Permissions": { + "type": "object", + "properties": {} + } + }, + "additionalProperties": false + }, + "Common": { + "properties": { + "LogDir": { + "type": "string" + }, + "CacheDir": { + "type": "string" + }, + "TmpDir": { + "type": "string" + }, + "LogStrategy": { + "type": "string" + }, + "SSHPort": { + "type": "integer", + "minimum": 2, + "maximum": 16000 + }, + "DebugEnable": { + "type": "boolean" + }, + "ExperimentalFeaturesEnable": { + "type": "boolean" + }, + "TraceEnable": { + "type": "boolean" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "Client", + "Server", + "Common" + ] +} -- cgit v1.2.3