cc-specifications/datastructures/unit.schema.json

40 lines
992 B
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/unit.schema.json",
2019-10-21 14:50:16 +02:00
"title": "Metric unit",
"description": "Format specification for job metric units",
"type": "object",
"properties": {
"base_unit": {
"description": "Metric base unit",
"type": "string",
"enum": [
"B",
"F",
"B/s",
"F/s",
"CPI",
"IPC",
2022-08-25 17:33:18 +02:00
"cpu_used",
"cpu_load",
"Hz"
2019-10-21 14:50:16 +02:00
]
},
"prefix": {
"description": "Unit prefix",
"type": "string",
"enum": [
"K",
"M",
"G",
"T",
"P",
"E"
]
}
},
"required": [
"base_unit"
]
}