mirror of
https://github.com/ClusterCockpit/cc-specifications.git
synced 2024-12-27 13:59:06 +01:00
aa5a3daff3
Add line protocol description with supported metrics. Adapt sqlite job schema.
37 lines
813 B
JSON
37 lines
813 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"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",
|
|
"Hz",
|
|
]
|
|
},
|
|
"prefix": {
|
|
"description": "Unit prefix",
|
|
"type": "string",
|
|
"enum": [
|
|
"K",
|
|
"M",
|
|
"G",
|
|
"T",
|
|
"P",
|
|
"E"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"base_unit"
|
|
]
|
|
}
|