Fix cluster.json

Add missing braces.
Remove null value from aggregation enum.
Make aggregation optional.
Add required properties.
This commit is contained in:
Jan Eitzinger 2022-07-27 09:50:50 +02:00
parent 074ececbf8
commit 25cedadc4c

View File

@ -1,6 +1,6 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"title": "HPC Cluster description", "title": "HPC cluster description",
"description": "Meta data information of a HPC cluster", "description": "Meta data information of a HPC cluster",
"type": "object", "type": "object",
"properties":{ "properties":{
@ -60,8 +60,7 @@
"type": "string", "type": "string",
"enum": [ "enum": [
"sum", "sum",
"avg", "avg"
null
] ]
}, },
@ -87,10 +86,22 @@
"alert": { "alert": {
"type": "number" "type": "number"
} }
},
"required": [
"name",
"peak",
"caution",
"alert"
]
} }
} }
} },
} "required": [
"name",
"unit",
"scope",
"timestep"
]
}, },
"subClusters": { "subClusters": {
"description": "Array of cluster hardware partitions", "description": "Array of cluster hardware partitions",
@ -239,6 +250,10 @@
"name", "name",
"metricDataRepository", "metricDataRepository",
"metricConfig", "metricConfig",
"partitions" "subClusters"
] ]
} }
}
}
}
}