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

103 lines
3.0 KiB
JSON
Raw Normal View History

2019-10-21 14:50:16 +02:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Job metric data",
"description": "Metric data of a HPC job",
"type": "object",
"properties": {
2021-12-16 08:10:36 +01:00
"Unit": {
2019-10-21 14:50:16 +02:00
"type": "string"
},
2021-12-16 08:10:36 +01:00
"Scope": {
2019-10-21 14:50:16 +02:00
"type": "string",
"enum": [
"node",
"hwthread",
"core",
"memoryDomain",
"die",
"socket",
"accelerator"
2019-10-21 14:50:16 +02:00
]
},
2021-12-16 08:10:36 +01:00
"Timestep": {
2019-10-21 14:50:16 +02:00
"description": "Measurement interval in seconds",
"type": "integer"
},
2021-12-16 08:10:36 +01:00
"Thresholds": {
"description": "Metric thresholds for specific system",
"type": "object",
"properties": {
2021-12-16 08:10:36 +01:00
"Peak": {
"type": "number"
},
2021-12-16 08:10:36 +01:00
"Normal": {
"type": "number"
},
2021-12-16 08:10:36 +01:00
"Caution": {
"type": "number"
},
2021-12-16 08:10:36 +01:00
"Alert": {
"type": "number"
}
}
},
2021-12-16 08:10:36 +01:00
"Series": {
2019-10-21 14:50:16 +02:00
"type": "array",
"items": {
"type": "object",
"properties": {
2021-12-16 08:10:36 +01:00
"Hostname": {
2019-10-21 14:50:16 +02:00
"type": "string"
},
2021-12-16 08:10:36 +01:00
"Id": {
2019-10-21 14:50:16 +02:00
"type": "integer"
},
2021-12-16 08:10:36 +01:00
"Statistics": {
2019-10-21 14:50:16 +02:00
"type": "object",
"properties": {
2021-12-16 08:10:36 +01:00
"Avg": {
2019-10-21 14:50:16 +02:00
"description": "Series average",
"type": "number",
"minimum": 0
},
2021-12-16 08:10:36 +01:00
"Min": {
2019-10-21 14:50:16 +02:00
"description": "Series minimum",
"type": "number",
"minimum": 0
},
2021-12-16 08:10:36 +01:00
"Max": {
2019-10-21 14:50:16 +02:00
"description": "Series maximum",
"type": "number",
"minimum": 0
}
},
"required": [
2021-12-16 08:10:36 +01:00
"Avg",
"Min",
"Max"
2019-10-21 14:50:16 +02:00
]
},
"data": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 1
}
},
"required": [
2021-12-16 08:10:36 +01:00
"Hostname",
"Data"
2019-10-21 14:50:16 +02:00
]
}
}
},
"required": [
2021-12-16 08:10:36 +01:00
"Unit",
"Scope",
"Timestep",
"Series"
2019-10-21 14:50:16 +02:00
]
}