mirror of
https://github.com/netdata/netdata.git
synced 2025-04-06 22:38:55 +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#",
|
||||
"type": "object",
|
||||
"title": "Netdata Agent data exporter metadata.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "./shared.json#/$defs/id"
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/$defs/entry"
|
||||
},
|
||||
"meta": {
|
||||
"$ref": "./shared.json#/$defs/instance"
|
||||
},
|
||||
"keywords": {
|
||||
"$ref": "./shared.json#/$defs/keywords"
|
||||
},
|
||||
"overview": {
|
||||
"type": "object",
|
||||
"description": "General information about the exporter.",
|
||||
{
|
||||
"type": "array",
|
||||
"minLength": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/entry"
|
||||
}
|
||||
}
|
||||
],
|
||||
"$defs": {
|
||||
"entry": {
|
||||
"properties": {
|
||||
"exporter_description": {
|
||||
"type": "string",
|
||||
"description": "General description of what the exporter does."
|
||||
"id": {
|
||||
"$ref": "./shared.json#/$defs/id"
|
||||
},
|
||||
"exporter_limitations": {
|
||||
"type": "string",
|
||||
"description": "Explanation of any limitations of the exporter."
|
||||
"meta": {
|
||||
"$ref": "./shared.json#/$defs/instance"
|
||||
},
|
||||
"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": [
|
||||
"exporter_description",
|
||||
"exporter_limitations"
|
||||
"id",
|
||||
"meta",
|
||||
"keywords",
|
||||
"overview",
|
||||
"setup"
|
||||
]
|
||||
},
|
||||
"setup": {
|
||||
"$ref": "./shared.json#/$defs/full_setup"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"meta",
|
||||
"keywords",
|
||||
"overview",
|
||||
"setup"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue