collector meta: restrict chart_type to known values (#15413)
Ilya Mashchenko committed
Jul 17, 2023 at 09:32 UTC
922e80be71d0f1484ae220571a0e1366ea2db635
1 file changed
+8
-2
collectors/metadata/schemas/single-module.json
+8
-2
@@ -304,7 +304,8 @@
304
"default_value": {
305
"type": [
306
"string",
307
- "number"
307
+ "number",
308
+ "boolean"
309
],
310
"description": "Default value. Leave empty if none."
311
},
@@ -540,7 +541,12 @@
541
},
542
"chart_type": {
543
"type": "string",
543
- "description": "Metric description (chart type)."
544
+ "description": "Metric description (chart type).",
545
+ "enum": [
546
+ "line",
547
+ "area",
548
+ "stacked"
549
+ ]
550
},
551
"dimensions": {
552
"type": "array",