diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-03-12 14:33:57 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-03-12 14:33:57 +0000 |
| commit | 7ef8f6e58990fc069cccc71ed6564e8c639ea4fc (patch) | |
| tree | 9e7662a34b7d0c1f1c5d9faf6d7d6ea8672f6410 /schema.json | |
| download | TCPDBench-7ef8f6e58990fc069cccc71ed6564e8c639ea4fc.tar.gz TCPDBench-7ef8f6e58990fc069cccc71ed6564e8c639ea4fc.zip | |
initial commit
Diffstat (limited to 'schema.json')
| -rw-r--r-- | schema.json | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/schema.json b/schema.json new file mode 100644 index 00000000..fedf6718 --- /dev/null +++ b/schema.json @@ -0,0 +1,114 @@ +{ + "definitions": {}, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://example.com/root.json", + "type": "object", + "title": "Result Schema", + "default": null, + "required": [ + "script", + "hostname", + "dataset", + "command", + "status", + "error", + "parameters", + "result" + ], + "properties": { + "script": { + "$id": "#/properties/script", + "type": "string", + "title": "The Script Schema", + "description": "Absolute path to the script that created the result.", + "pattern": "^(.*)$" + }, + "script_md5": { + "$id": "#/properties/script_md5", + "type": "string", + "title": "The Script_md5 Schema", + "description": "MD5 checksum of the script file", + "pattern": "^[a-z0-9]{32}$" + }, + "hostname": { + "$id": "#/properties/hostname", + "type": "string", + "title": "The Hostname Schema", + "description": "Hostname of the machine that ran the task", + "pattern": "^(.*)$" + }, + "dataset": { + "$id": "#/properties/dataset", + "type": "string", + "title": "The Dataset Schema", + "description": "Name of the dataset", + "pattern": "^[a-z_0-9]+$" + }, + "dataset_md5": { + "$id": "#/properties/dataset_md5", + "type": "string", + "title": "The Dataset_md5 Schema", + "description": "MD5 checksum of the dataset file", + "pattern": "^[a-z0-9]{32}$" + }, + "command": { + "$id": "#/properties/command", + "type": "string", + "title": "The Command Schema", + "description": "The exact command that was executed", + "pattern": "^(.*)$" + }, + "status": { + "$id": "#/properties/status", + "type": "string", + "enum": [ + "FAIL", + "SKIP", + "SUCCESS", + "TIMEOUT" + ], + "title": "The Status Schema", + "description": "Return status of the task" + }, + "error": { + "$id": "#/properties/error", + "type": ["string", "null"], + "title": "The Error Schema", + "description": "An error message, if one occurred", + "default": null, + "pattern": "^(.*)$" + }, + "parameters": { + "$id": "#/properties/parameters", + "type": "object", + "title": "The Parameters Schema", + "description": "Parameters to the algorithm", + "default": null + }, + "result": { + "$id": "#/properties/result", + "type": "object", + "title": "The Result Schema", + "required": [ + "cplocations", + "runtime" + ], + "properties": { + "cplocations": { + "$id": "#/properties/result/properties/cplocations", + "type": ["array", "null"], + "title": "The Cplocations Schema", + "description": "Array of change point locations as 0-based integers", + "default": null + }, + "runtime": { + "$id": "#/properties/result/properties/runtime", + "type": ["number", "null"], + "title": "The Runtime Schema", + "description": "The runtime of the task, in seconds.", + "default": null + } + } + } + } +} |
