diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-07-28 07:44:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 07:44:40 -0400 |
commit | 8c61428be7f2e0fa33ec8bc1088320f6acc3fae9 (patch) | |
tree | 25b6178986af152f6d4326540bb6e6ffcbd41e0f /integrations/schemas | |
parent | e031a45a203eb9f616b0d1689f52b4d1050a7253 (diff) |
Fix up notification schema to better support cloud notifications. (#15616)
Diffstat (limited to 'integrations/schemas')
-rw-r--r-- | integrations/schemas/collection-single-module.json | 2 | ||||
-rw-r--r-- | integrations/schemas/exporter.json | 2 | ||||
-rw-r--r-- | integrations/schemas/notification.json | 9 | ||||
-rw-r--r-- | integrations/schemas/shared.json | 15 |
4 files changed, 24 insertions, 4 deletions
diff --git a/integrations/schemas/collection-single-module.json b/integrations/schemas/collection-single-module.json index 24ae47cfcb..3ff138e6ce 100644 --- a/integrations/schemas/collection-single-module.json +++ b/integrations/schemas/collection-single-module.json @@ -211,7 +211,7 @@ ] }, "setup": { - "$ref": "./shared.json#/$defs/setup" + "$ref": "./shared.json#/$defs/full_setup" }, "troubleshooting": { "type": "object", diff --git a/integrations/schemas/exporter.json b/integrations/schemas/exporter.json index bb4ac22876..99cf64e1f6 100644 --- a/integrations/schemas/exporter.json +++ b/integrations/schemas/exporter.json @@ -31,7 +31,7 @@ ] }, "setup": { - "$ref": "./shared.json#/$defs/setup" + "$ref": "./shared.json#/$defs/full_setup" } }, "required": [ diff --git a/integrations/schemas/notification.json b/integrations/schemas/notification.json index 6d3c878a47..0b769e1888 100644 --- a/integrations/schemas/notification.json +++ b/integrations/schemas/notification.json @@ -46,7 +46,14 @@ ] }, "setup": { - "$ref": "./shared.json#/$defs/setup" + "oneOf": [ + { + "$ref": "./shared.json#/$defs/short_setup" + }, + { + "$ref": "./shared.json#/$defs/full_setup" + } + ] } }, "required": [ diff --git a/integrations/schemas/shared.json b/integrations/schemas/shared.json index 3ee4a1c7fd..8cf45019bc 100644 --- a/integrations/schemas/shared.json +++ b/integrations/schemas/shared.json @@ -46,7 +46,20 @@ "type": "string" } }, - "setup": { + "short_setup": { + "type": "object", + "description": "Simplified information about how to enable and configure the integration.", + "properties": { + "description": { + "type": "string", + "description": "A description of how to enable and configure the integration." + } + }, + "required": [ + "description" + ] + }, + "full_setup": { "type": "object", "description": "Complete information that is needed to enable and configure the integration.", "properties": { |