mirror of
https://github.com/netdata/netdata.git
synced 2025-04-27 06:10:43 +00:00
Fix exporter schema to support multiple entries per file. (#15649)
This commit is contained in:
parent
6bab67ff6c
commit
6ae2593a25
1 changed files with 47 additions and 32 deletions
|
@ -1,44 +1,59 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"type": "object",
|
|
||||||
"title": "Netdata Agent data exporter metadata.",
|
"title": "Netdata Agent data exporter metadata.",
|
||||||
"properties": {
|
"oneOf": [
|
||||||
"id": {
|
{
|
||||||
"$ref": "./shared.json#/$defs/id"
|
"$ref": "#/$defs/entry"
|
||||||
},
|
},
|
||||||
"meta": {
|
{
|
||||||
"$ref": "./shared.json#/$defs/instance"
|
"type": "array",
|
||||||
},
|
"minLength": 1,
|
||||||
"keywords": {
|
"items": {
|
||||||
"$ref": "./shared.json#/$defs/keywords"
|
"$ref": "#/$defs/entry"
|
||||||
},
|
}
|
||||||
"overview": {
|
}
|
||||||
"type": "object",
|
],
|
||||||
"description": "General information about the exporter.",
|
"$defs": {
|
||||||
|
"entry": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"exporter_description": {
|
"id": {
|
||||||
"type": "string",
|
"$ref": "./shared.json#/$defs/id"
|
||||||
"description": "General description of what the exporter does."
|
|
||||||
},
|
},
|
||||||
"exporter_limitations": {
|
"meta": {
|
||||||
"type": "string",
|
"$ref": "./shared.json#/$defs/instance"
|
||||||
"description": "Explanation of any limitations of the exporter."
|
},
|
||||||
|
"keywords": {
|
||||||
|
"$ref": "./shared.json#/$defs/keywords"
|
||||||
|
},
|
||||||
|
"overview": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "General information about the exporter.",
|
||||||
|
"properties": {
|
||||||
|
"exporter_description": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "General description of what the exporter does."
|
||||||
|
},
|
||||||
|
"exporter_limitations": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Explanation of any limitations of the exporter."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"exporter_description",
|
||||||
|
"exporter_limitations"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"setup": {
|
||||||
|
"$ref": "./shared.json#/$defs/full_setup"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"exporter_description",
|
"id",
|
||||||
"exporter_limitations"
|
"meta",
|
||||||
|
"keywords",
|
||||||
|
"overview",
|
||||||
|
"setup"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"setup": {
|
|
||||||
"$ref": "./shared.json#/$defs/full_setup"
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": [
|
|
||||||
"id",
|
|
||||||
"meta",
|
|
||||||
"keywords",
|
|
||||||
"overview",
|
|
||||||
"setup"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue