summaryrefslogtreecommitdiffstats
path: root/integrations/schemas/categories.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /integrations/schemas/categories.json
parentInitial commit. (diff)
downloadnetdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.tar.xz
netdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'integrations/schemas/categories.json')
-rw-r--r--integrations/schemas/categories.json55
1 files changed, 55 insertions, 0 deletions
diff --git a/integrations/schemas/categories.json b/integrations/schemas/categories.json
new file mode 100644
index 00000000..9ebb852f
--- /dev/null
+++ b/integrations/schemas/categories.json
@@ -0,0 +1,55 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "array",
+ "title": "Category information for integrations.",
+ "items": {
+ "$ref": "#/$defs/category"
+ },
+ "$defs": {
+ "category": {
+ "type": "object",
+ "description": "An entry for a single category.",
+ "properties": {
+ "id": {
+ "$ref": "./shared.json#/$defs/id"
+ },
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "description": "The display name for the category."
+ },
+ "description": {
+ "type": "string",
+ "description": "A description of the category."
+ },
+ "most_popular": {
+ "type": "boolean",
+ "description": "Indicates if the category should show up in the initial list of categories, or only in the full expanded list."
+ },
+ "priority": {
+ "type": "integer",
+ "description": "Indicates sort order for categories that are marked as most popular."
+ },
+ "collector_default": {
+ "type": "boolean",
+ "description": "Indicates that the category should be added to collector integrations that list no categories."
+ },
+ "children": {
+ "type": "array",
+ "description": "A list of categories that are children of this category.",
+ "items": {
+ "$ref": "#/$defs/category"
+ }
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "description",
+ "most_popular",
+ "priority",
+ "children"
+ ]
+ }
+ }
+}