@cryptotaxi247 / netdata-1 / commits / 8c61428be

Fix up notification schema to better support cloud notifications. (#15616)

Austin S. Hemmelgarn committed Jul 28, 2023 at 07:44 UTC 8c61428be7f2e0fa33ec8bc1088320f6acc3fae9
5 files changed +24 -43
integrations/notifications.yaml deleted
-39
@@ -1,39 +0,0 @@
1 -- id: ''
2 - meta:
3 - name: ''
4 - link: ''
5 - categories: []
6 - icon_filename: ''
7 - keywords: []
8 - overview:
9 - notification_description: ''
10 - notification_limitations: ''
11 - setup:
12 - prerequisites:
13 - list:
14 - - title: ''
15 - description: ''
16 - configuration:
17 - file:
18 - name: ''
19 - description: ''
20 - options:
21 - description: ''
22 - folding:
23 - title: ''
24 - enabled: true
25 - list:
26 - - name: ''
27 - default_value: ''
28 - description: ''
29 - required: false
30 - examples:
31 - folding:
32 - enabled: true
33 - title: ''
34 - list:
35 - - name: ''
36 - folding:
37 - enabled: false
38 - description: ''
39 - config: ''
integrations/schemas/collection-single-module.json
+1 -1
@@ -211,7 +211,7 @@
211 ]
212 },
213 "setup": {
214 - "$ref": "./shared.json#/$defs/setup"
214 + "$ref": "./shared.json#/$defs/full_setup"
215 },
216 "troubleshooting": {
217 "type": "object",
integrations/schemas/exporter.json
+1 -1
@@ -31,7 +31,7 @@
31 ]
32 },
33 "setup": {
34 - "$ref": "./shared.json#/$defs/setup"
34 + "$ref": "./shared.json#/$defs/full_setup"
35 }
36 },
37 "required": [
integrations/schemas/notification.json
+8 -1
@@ -46,7 +46,14 @@
46 ]
47 },
48 "setup": {
49 - "$ref": "./shared.json#/$defs/setup"
49 + "oneOf": [
50 + {
51 + "$ref": "./shared.json#/$defs/short_setup"
52 + },
53 + {
54 + "$ref": "./shared.json#/$defs/full_setup"
55 + }
56 + ]
57 }
58 },
59 "required": [
integrations/schemas/shared.json
+14 -1
@@ -46,7 +46,20 @@
46 "type": "string"
47 }
48 },
49 - "setup": {
49 + "short_setup": {
50 + "type": "object",
51 + "description": "Simplified information about how to enable and configure the integration.",
52 + "properties": {
53 + "description": {
54 + "type": "string",
55 + "description": "A description of how to enable and configure the integration."
56 + }
57 + },
58 + "required": [
59 + "description"
60 + ]
61 + },
62 + "full_setup": {
63 "type": "object",
64 "description": "Complete information that is needed to enable and configure the integration.",
65 "properties": {