mirror of
https://github.com/ClusterCockpit/cc-specifications.git
synced 2024-11-10 01:37:25 +01:00
42 lines
1.0 KiB
JSON
42 lines
1.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://raw.githubusercontent.com/ClusterCockpit/cc-specifications/master/datastructures/unit.schema.json",
|
|
"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",
|
|
"load",
|
|
"Hz",
|
|
"W",
|
|
"°C",
|
|
""
|
|
]
|
|
},
|
|
"prefix": {
|
|
"description": "Unit prefix",
|
|
"type": "string",
|
|
"enum": [
|
|
"K",
|
|
"M",
|
|
"G",
|
|
"T",
|
|
"P",
|
|
"E"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"base_unit"
|
|
]
|
|
}
|