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

69 lines
2.3 KiB
JSON
Raw Normal View History

2019-09-06 16:16:32 +02:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/RRZE-HPC/HPCJobDatabase/blob/master/json-schema/job-metric.schema.json",
"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",
"enum": [ "node", "cpu", "socket" ]
2019-09-06 16:16:32 +02:00
},
"timestep": {
"description": "",
"type": "integer"
},
"series": {
"description": "",
"type": "array",
"items": {
"type": "object",
"properties": {
"node_id": {
"type": "string"
},
"id": {
"type": "integer"
},
"statistic": {
"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" ]
}