mirror of
https://github.com/ClusterCockpit/cc-specifications.git
synced 2024-11-10 09:47:26 +01:00
aa5a3daff3
Add line protocol description with supported metrics. Adapt sqlite job schema.
84 lines
2.4 KiB
JSON
84 lines
2.4 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Job metric data",
|
|
"description": "Metric data of a HPC job",
|
|
"type": "object",
|
|
"properties": {
|
|
"unit": {
|
|
"description": "",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"description": "",
|
|
"type": "string",
|
|
"enum": [
|
|
"node",
|
|
"cpu",
|
|
"socket"
|
|
]
|
|
},
|
|
"timestep": {
|
|
"description": "Measurement interval in seconds",
|
|
"type": "integer"
|
|
},
|
|
"series": {
|
|
"description": "",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"node_id": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"statistics": {
|
|
"type": "object",
|
|
"properties": {
|
|
"avg": {
|
|
"description": "Series average",
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"min": {
|
|
"description": "Series minimum",
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"max": {
|
|
"description": "Series maximum",
|
|
"type": "number",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"avg",
|
|
"min",
|
|
"max"
|
|
]
|
|
},
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"node_id",
|
|
"data"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"unit",
|
|
"scope",
|
|
"timestep",
|
|
"series"
|
|
]
|
|
}
|