diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-07-26 12:53:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 22:23:52 +0530 |
commit | 85d122f8a6c4709943825c1fcf9bffa784bd5620 (patch) | |
tree | be18267e2276ccb507fb10ca9750b7d34c43b4f8 /integrations/schemas | |
parent | b12cadca9938ae90b157b8f9f5a3d911c3cd43b0 (diff) |
Add schema and examples for notification method metadata. (#15549)
Diffstat (limited to 'integrations/schemas')
-rw-r--r-- | integrations/schemas/notification.json | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/integrations/schemas/notification.json b/integrations/schemas/notification.json new file mode 100644 index 0000000000..b837047106 --- /dev/null +++ b/integrations/schemas/notification.json @@ -0,0 +1,60 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Netdata notification mechanism metadata.", + "oneOf": [ + { + "$ref": "#/$defs/entry" + }, + { + "type": "array", + "items": { + "$ref": "#/$defs/entry" + } + } + ], + "$def": { + "entry": { + "type": "object", + "description": "Data for a single notification method.", + "properties": { + "id": { + "$ref": "./shared.json#/$defs/id" + }, + "meta": { + "$ref": "./shared.json#/$defs/instance" + }, + "keywords": { + "$ref": "./shared.json#/$defs/keywords" + }, + "overview": { + "type": "object", + "description": "General information about the notification method.", + "properties": { + "notification_description": { + "type": "string", + "description": "General description of what the notification method does." + }, + "notification_limitations": { + "type": "string", + "description": "Explanation of any limitations of the notification method." + } + }, + "required": [ + "notification_description", + "notification_limitations" + ] + }, + "setup": { + "$ref": "./shared.json#/$defs/setup" + } + }, + "required": [ + "id", + "meta", + "keywords", + "overview", + "setup" + ] + } + } +} |