cc-specifications/schema/json/job-metric-data.schema.json
Jan Eitzinger b7abddf0c8 Extend job archive schema for node sharing
* Allow for node sharing
* Add GPU support
2021-11-26 09:15:50 +01:00

100 lines
2.9 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": {
"type": "string"
},
"scope": {
"type": "string",
"enum": [
"node",
"cpu",
"socket",
"gpu"
]
},
"timestep": {
"description": "Measurement interval in seconds",
"type": "integer"
},
"thresholds": {
"description": "Metric thresholds for specific system",
"type": "object",
"properties": {
"peak": {
"type": "number"
},
"normal": {
"type": "number"
},
"caution": {
"type": "number"
},
"alert": {
"type": "number"
}
}
},
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hostname": {
"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": [
"hostname",
"data"
]
}
}
},
"required": [
"unit",
"scope",
"timestep",
"series"
]
}