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

217 lines
7.4 KiB
JSON
Raw Normal View History

2019-10-21 14:50:16 +02:00
{
"$schema": "http://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ClusterCockpit/cc-specifications/master/datastructures/job-metric-data.schema.json",
2019-10-21 14:50:16 +02:00
"title": "Job metric data",
"description": "Metric data of a HPC job",
"type": "object",
"properties": {
"unit": {
"description": "Metric unit",
"$ref": "https://raw.githubusercontent.com/ClusterCockpit/cc-specifications/master/datastructures/unit.schema.json"
2019-10-21 14:50:16 +02:00
},
"timestep": {
2019-10-21 14:50:16 +02:00
"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"
}
}
},
"statisticsSeries": {
"type": "object",
"description": "Statistics series across topology",
"properties": {
"min": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"max": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"mean": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"percentiles": {
"type": "object",
"properties": {
"10": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"20": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"30": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"40": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"50": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"60": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"70": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"80": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"90": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"25": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
},
"75": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 3
}
}
}
}
},
"series": {
2019-10-21 14:50:16 +02:00
"type": "array",
"items": {
"type": "object",
"properties": {
"hostname": {
2019-10-21 14:50:16 +02:00
"type": "string"
},
"id": {
2019-10-21 14:50:16 +02:00
"type": "integer"
},
"statistics": {
2019-10-21 14:50:16 +02:00
"type": "object",
"description": "Statistics across time dimension",
2019-10-21 14:50:16 +02:00
"properties": {
"avg": {
2019-10-21 14:50:16 +02:00
"description": "Series average",
"type": "number",
"minimum": 0
},
"min": {
2019-10-21 14:50:16 +02:00
"description": "Series minimum",
"type": "number",
"minimum": 0
},
"max": {
2019-10-21 14:50:16 +02:00
"description": "Series maximum",
"type": "number",
"minimum": 0
}
},
"required": [
"avg",
"min",
"max"
2019-10-21 14:50:16 +02:00
]
},
"data": {
"type": "array",
"items": {
"type": "number",
"minimum": 0
},
"minItems": 1
}
},
"required": [
"hostname",
2022-08-25 17:33:18 +02:00
"statistics",
"data"
2019-10-21 14:50:16 +02:00
]
}
}
},
"required": [
"unit",
"timestep",
"series"
2019-10-21 14:50:16 +02:00
]
}