mirror of
https://github.com/netdata/netdata.git
synced 2025-04-12 16:58:10 +00:00
Updates on JSON schemas (#15382)
This commit is contained in:
parent
4801398871
commit
bf8c38897f
4 changed files with 21 additions and 65 deletions
collectors/metadata
docs/.templates/integration
|
@ -19,51 +19,21 @@
|
||||||
"$ref": "#/definitions/category"
|
"$ref": "#/definitions/category"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"icon_path": {
|
"icon_filename": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Path to the integration's icon."
|
"description": "The filename of the integration's icon, as sourced from https://github.com/netdata/website/tree/master/themes/tailwind/static/img."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"link",
|
"link",
|
||||||
"categories",
|
"categories",
|
||||||
"icon_path"
|
"icon_filename"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"category": {
|
"category": {
|
||||||
"type": "object",
|
"type": "string",
|
||||||
"description": "Category and subcategory of the collector/monitored instance.",
|
"description": "String defining integration category"
|
||||||
"properties": {
|
|
||||||
"level0": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Category name",
|
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"enum": [
|
|
||||||
"data-collection"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"level1": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Subcategory name",
|
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"enum": [
|
|
||||||
"most-popular",
|
|
||||||
"databases",
|
|
||||||
"web-servers",
|
|
||||||
"message-brokers",
|
|
||||||
"hardware-and-sensors",
|
|
||||||
"operating-systems",
|
|
||||||
"containers-and-vms"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"alerts": {
|
"alerts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
|
|
@ -81,6 +81,10 @@
|
||||||
"required": [
|
"required": [
|
||||||
"description"
|
"description"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"most_popular": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether or not the integration is to be flagged as most-popular, meaning it will show up at the top of the menu."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -90,7 +94,8 @@
|
||||||
"alternative_monitored_instances",
|
"alternative_monitored_instances",
|
||||||
"keywords",
|
"keywords",
|
||||||
"related_resources",
|
"related_resources",
|
||||||
"info_provided_to_referring_integrations"
|
"info_provided_to_referring_integrations",
|
||||||
|
"most_popular"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"overview": {
|
"overview": {
|
||||||
|
|
|
@ -1,20 +1,12 @@
|
||||||
meta:
|
meta:
|
||||||
plugin_name: ""
|
plugin_name: ""
|
||||||
module_name: ""
|
module_name: ""
|
||||||
|
alternative_monitored_instances: []
|
||||||
monitored_instance:
|
monitored_instance:
|
||||||
name: ""
|
name: ""
|
||||||
link: ""
|
link: ""
|
||||||
icon_path: ""
|
categories: []
|
||||||
categories:
|
icon_filename: ""
|
||||||
- level0: data-collection
|
|
||||||
level1: databases
|
|
||||||
alternative_monitored_instances:
|
|
||||||
- name: ""
|
|
||||||
link: ""
|
|
||||||
icon_path: ""
|
|
||||||
categories:
|
|
||||||
- level0: data-collection
|
|
||||||
level1: containers-and-vms
|
|
||||||
related_resources:
|
related_resources:
|
||||||
integrations:
|
integrations:
|
||||||
list:
|
list:
|
||||||
|
@ -22,8 +14,8 @@ meta:
|
||||||
module_name: ""
|
module_name: ""
|
||||||
info_provided_to_referring_integrations:
|
info_provided_to_referring_integrations:
|
||||||
description: ""
|
description: ""
|
||||||
keywords:
|
keywords: []
|
||||||
- ""
|
most_popular: false
|
||||||
overview:
|
overview:
|
||||||
data_collection:
|
data_collection:
|
||||||
metrics_description: ""
|
metrics_description: ""
|
||||||
|
|
|
@ -17,17 +17,6 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Name of the category. This is the actual name of the category or subcategory, (e.g. Web Servers, Operating Systems, Databases)."
|
"description": "Name of the category. This is the actual name of the category or subcategory, (e.g. Web Servers, Operating Systems, Databases)."
|
||||||
},
|
},
|
||||||
"limit_results": {
|
|
||||||
"type": [
|
|
||||||
"null",
|
|
||||||
"integer"
|
|
||||||
],
|
|
||||||
"description": "A value that if set to an integer will limit the amount of subitems that this category will display. Additional subcategories will be hidden behind a `Show more` field."
|
|
||||||
},
|
|
||||||
"icon_name": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "The name of the icon from the Netdata UI."
|
|
||||||
},
|
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Text that will be presented below the category title."
|
"description": "Text that will be presented below the category title."
|
||||||
|
@ -37,13 +26,13 @@
|
||||||
"description": "Priority of the category. A number expressing where the category should be in the menu. The smaller the number the higher the priority, so a category with priority 1 would be above a category with a priority of 50 in terms of menu ordering."
|
"description": "Priority of the category. A number expressing where the category should be in the menu. The smaller the number the higher the priority, so a category with priority 1 would be above a category with a priority of 50 in terms of menu ordering."
|
||||||
},
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "ID of the category that will be used by integrations, this is a unique number for each category that will be used by its children to refer to it as their parent."
|
"description": "ID of the category that will be used by integrations, this is a unique number for each category that will be used by its children to refer to it as their parent."
|
||||||
},
|
},
|
||||||
"parent_id": {
|
"parent_id": {
|
||||||
"type": [
|
"type": [
|
||||||
"null",
|
"null",
|
||||||
"integer"
|
"string"
|
||||||
],
|
],
|
||||||
"description": "The category's parent ID. If this category is a subcategory, then it needs to mention its parent, where it belongs to. Make it null if no parent and this is a top level category."
|
"description": "The category's parent ID. If this category is a subcategory, then it needs to mention its parent, where it belongs to. Make it null if no parent and this is a top level category."
|
||||||
}
|
}
|
||||||
|
@ -59,8 +48,8 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "A unique numeric identifier for the integration."
|
"description": "A unique string identifier for the integration."
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -72,7 +61,7 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"category_id": {
|
"category_id": {
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "The category_ID for this integration."
|
"description": "The category_ID for this integration."
|
||||||
},
|
},
|
||||||
"priority": {
|
"priority": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue