Update cluster.schema.json

Move MetricDataRepository property to cc config file.
This commit is contained in:
Jan Eitzinger 2022-08-25 12:26:13 +02:00
parent 5cf89a6a3b
commit 5ea38d5a6c

View File

@ -8,31 +8,6 @@
"description": "The unique identifier of a cluster", "description": "The unique identifier of a cluster",
"type": "string" "type": "string"
}, },
"metricDataRepository": {
"description": "Type of the metric data repository for this cluster",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"influxdb-v1",
"influxdb-v2",
"prometheus",
"cc-metric-store"
]
},
"url": {
"type": "string"
},
"token": {
"type": "string"
}
},
"required": [
"kind",
"url"
]
},
"metricConfig": { "metricConfig": {
"description": "Metric specifications", "description": "Metric specifications",
"type": "array", "type": "array",
@ -94,7 +69,6 @@
"alert" "alert"
] ]
} }
}
}, },
"required": [ "required": [
"name", "name",
@ -102,6 +76,8 @@
"scope", "scope",
"timestep" "timestep"
] ]
}
}
}, },
"subClusters": { "subClusters": {
"description": "Array of cluster hardware partitions", "description": "Array of cluster hardware partitions",
@ -248,12 +224,10 @@
}, },
"required":[ "required":[
"name", "name",
"metricDataRepository",
"metricConfig", "metricConfig",
"subClusters" "subClusters"
] ]
} }
} }
} }
}
} }