Add additional variable section to instance data in schema. (#15627)
Austin S. Hemmelgarn committed
Jul 28, 2023 at 12:18 UTC
d5535e699e5a1bd7bb31a63a4dc38268cf7795a1
1 file changed
+23
integrations/schemas/shared.json
+23
@@ -30,6 +30,29 @@
30
"icon_filename": {
31
"type": "string",
32
"description": "The filename of the integration's icon, as sourced from https://github.com/netdata/website/tree/master/themes/tailwind/static/img."
33
+ },
34
+ "variables": {
35
+ "type": "object",
36
+ "description": "A mapping of variables to be used when templating other keys.",
37
+ "patternProperties": {
38
+ "^[a-zA-Z_][a-zA-Z0-9_]*$": {
39
+ "oneOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "integer"
45
+ },
46
+ {
47
+ "type": "boolean"
48
+ },
49
+ {
50
+ "type": "number"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ "additionalProperties": false
56
}
57
},
58
"required": [