cc-backend/json-schema/job-metric-data.schema.json

84 lines
2.4 KiB
JSON
Raw Normal View History

2019-09-06 16:16:32 +02:00
{
"$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": "",
2019-09-06 16:31:34 +02:00
"type": "string",
2019-09-15 10:35:02 +02:00
"enum": [
"node",
"cpu",
"socket"
]
2019-09-06 16:16:32 +02:00
},
"timestep": {
2019-09-15 10:35:02 +02:00
"description": "Measurement interval in seconds",
2019-09-06 16:16:32 +02:00
"type": "integer"
},
"series": {
"description": "",
"type": "array",
"items": {
"type": "object",
"properties": {
"node_id": {
"type": "string"
},
"id": {
"type": "integer"
},
2019-09-15 10:35:02 +02:00
"statistics": {
2019-09-06 16:16:32 +02:00
"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
}
},
2019-09-15 10:35:02 +02:00
"required": [
"avg",
"min",
"max"
]
2019-09-06 16:16:32 +02:00
},
"data": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 1
}
},
2019-09-15 10:35:02 +02:00
"required": [
"node_id",
"data"
]
2019-09-06 16:16:32 +02:00
}
}
},
2019-09-15 10:35:02 +02:00
"required": [
"unit",
"scope",
"timestep",
"series"
]
2019-09-06 16:16:32 +02:00
}