Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions run_start_metadata_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's clarify with DSG what form the vetos will be streamed in before commiting to a representation here.

"minItems": 1,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
}
}
},
"required": [
"num_periods",
"num_time_channels",
"time_regimes",
"vetos"
]
}