-
Notifications
You must be signed in to change notification settings - Fork 28
/
schema.json
114 lines (114 loc) · 2.72 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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
}
}
}
}
}