From 25cedadc4c4ee4f52d1c39e66b16f96d5fe5139d Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 27 Jul 2022 09:50:50 +0200 Subject: [PATCH] Fix cluster.json Add missing braces. Remove null value from aggregation enum. Make aggregation optional. Add required properties. --- datastructures/cluster.schema.json | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/datastructures/cluster.schema.json b/datastructures/cluster.schema.json index 10f1f99..1098fdf 100644 --- a/datastructures/cluster.schema.json +++ b/datastructures/cluster.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "title": "HPC Cluster description", + "title": "HPC cluster description", "description": "Meta data information of a HPC cluster", "type": "object", "properties":{ @@ -60,13 +60,12 @@ "type": "string", "enum": [ "sum", - "avg", - null + "avg" ] }, "subClusters": { - "description": "Array of cluster hardware partition metric thresholds", + "description": "Array of cluster hardware partition metric thresholds", "type": "array", "items": { "type": "object", @@ -87,10 +86,22 @@ "alert": { "type": "number" } - } + }, + "required": [ + "name", + "peak", + "caution", + "alert" + ] } } - } + }, + "required": [ + "name", + "unit", + "scope", + "timestep" + ] }, "subClusters": { "description": "Array of cluster hardware partitions", @@ -239,6 +250,10 @@ "name", "metricDataRepository", "metricConfig", - "partitions" + "subClusters" ] } + } + } + } +}