-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_start_metadata_schema.json
More file actions
79 lines (79 loc) · 2.02 KB
/
run_start_metadata_schema.json
File metadata and controls
79 lines (79 loc) · 2.02 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/ISISComputingGroup/DataStreaming/blob/main/run_start_metadata_schema.json",
"title": "run_start_metadata_schema",
"description": "Schema for run start metadata used at ISIS for kafka_dae_diagnostics",
"type": "object",
"properties": {
"num_periods": {
"description": "The total number of periods for this run, 1 indexed.",
"type": "integer"
},
"max_time_channels": {
"description": "The maximum number of time channels for this run.",
"type": "integer"
},
"time_regimes": {
"description": "The time regimes for this run.",
"type": "array",
"minItems": 1,
"items": {
"type": "array",
"description": "time regime rows",
"items": {
"$comment": "Either linear time regime rows, or an arbitrary list of bin-edges.",
"oneOf": [
{
"type": "object",
"description": "time regime row",
"properties": {
"from": {
"type": "number"
},
"to": {
"type": "number"
},
"steps": {
"type": "number"
},
"mode": {
"enum": [
"dT = C",
"dT/T = C",
"dT/T**2 = C",
"Shifted"
]
}
}
},
{
"type": "integer"
}
]
}
}
},
"vetos": {
"description": "The vetos for this run",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
}
}
},
"required": [
"num_periods",
"num_time_channels",
"time_regimes",
"vetos"
]
}