-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update JSON schemas for all plugins (#1328)
- Update JSON schemas for all plugins - Add password format for credentials - Ensure `log` is exposed everywhere - Ensure `additionalProperties` are enabled for plugins with more complex data - Unify JSON schema definition across all plugins
Showing
37 changed files
with
1,047 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Echo", | ||
"description": "Echo is an example Botkube executor plugin used during e2e tests. It's not meant for production usage.", | ||
"type": "object", | ||
"properties": { | ||
"changeResponseToUpperCase": { | ||
"description": "When changeResponseToUpperCase is true, the echoed string will be in upper case", | ||
"type": "boolean", | ||
"default": false | ||
} | ||
}, | ||
"required": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "GH", | ||
"description": "GH creates an issue on GitHub for a related Kubernetes resource.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"uiSchema": { | ||
"github": { | ||
"issueTemplate": { | ||
"ui:widget": "textarea" | ||
}, | ||
"token": { | ||
"ui:widget": "password" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"github": { | ||
"description": "GitHub-related configuration", | ||
"title": "GitHub configuration", | ||
"type": "object", | ||
"properties": { | ||
"token": { | ||
"description": "GitHub Personal Access Token", | ||
"title": "GitHub Token", | ||
"type": "string", | ||
"minLength": 3, | ||
"default": "" | ||
}, | ||
"issueTemplate": { | ||
"description": "Issue template to use. If not specified, the default one will be used.", | ||
"title": "Issue Template", | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"repository": { | ||
"type": "string", | ||
"title": "Repository", | ||
"description": "GitHub repository to create issues in. Must be in the format of 'owner/repo'.", | ||
"minLength": 3, | ||
"default": "" | ||
} | ||
}, | ||
"required": [ | ||
"token", | ||
"repository" | ||
] | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "ConfigMap Watcher", | ||
"description": "Kubernetes ConfigMap watcher is an example Botkube source plugin used during e2e tests. It's not meant for production usage.", | ||
"type": "object", | ||
"properties": {}, | ||
"required": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"message": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"message" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Flux", | ||
"description": "Run the Flux CLI commands directly from your favorite communication platform.", | ||
"type": "object", | ||
"uiSchema": { | ||
"github": { | ||
"auth": { | ||
"accessToken": { | ||
"ui:widget": "password" | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"github": { | ||
"title": "GitHub", | ||
"type": "object", | ||
"properties": { | ||
"auth": { | ||
"title": "Auth", | ||
"type": "object", | ||
"properties": { | ||
"accessToken": { | ||
"title": "Access Token", | ||
"description": "Instructions for token creation: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/#creating-a-token. When not provided some functionality may not work, e.g., adding comments to pull requests or approving them.", | ||
"type": "string", | ||
"default": "" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [], | ||
"additionalProperties": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Helm", | ||
"description": "Run the Helm CLI commands directly from your favorite communication platform.", | ||
"type": "object", | ||
"properties": { | ||
"defaultNamespace": { | ||
"title": "Default Kubernetes Namespace", | ||
"description": "Namespace used if not explicitly specified during command execution.", | ||
"type": "string", | ||
"default": "default" | ||
}, | ||
"helmDriver": { | ||
"title": "Storage driver", | ||
"description": "Storage driver for Helm.", | ||
"type": "string", | ||
"default": "secret", | ||
"oneOf": [ | ||
{ | ||
"const": "configmap", | ||
"title": "ConfigMap" | ||
}, | ||
{ | ||
"const": "secret", | ||
"title": "Secret" | ||
}, | ||
{ | ||
"const": "memory", | ||
"title": "Memory" | ||
} | ||
] | ||
} | ||
}, | ||
"required": [], | ||
"additionalProperties": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Kubectl", | ||
"description": "Run the Kubectl CLI commands directly from your favorite communication platform.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"uiSchema": { | ||
"interactiveBuilder": { | ||
"allowed": { | ||
"verbs": { | ||
"ui:classNames": "non-orderable", | ||
"ui:options": { | ||
"orderable": false | ||
}, | ||
"items": { | ||
"ui:options": { | ||
"label": false | ||
} | ||
} | ||
}, | ||
"resources": { | ||
"ui:classNames": "non-orderable", | ||
"ui:options": { | ||
"orderable": false | ||
}, | ||
"items": { | ||
"ui:options": { | ||
"label": false | ||
} | ||
} | ||
}, | ||
"namespaces": { | ||
"ui:classNames": "non-orderable", | ||
"ui:options": { | ||
"orderable": false | ||
}, | ||
"items": { | ||
"ui:options": { | ||
"label": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"defaultNamespace": { | ||
"description": "Namespace used if not explicitly specified during command execution.", | ||
"title": "Default Kubernetes Namespace", | ||
"type": "string", | ||
"default": "default" | ||
}, | ||
"interactiveBuilder": { | ||
"title": "Interactive command builder", | ||
"description": "Configuration of the interactive Kubectl command builder.", | ||
"type": "object", | ||
"properties": { | ||
"allowed": { | ||
"title": "", | ||
"type": "object", | ||
"description": "", | ||
"properties": { | ||
"verbs": { | ||
"type": "array", | ||
"title": "Verbs", | ||
"description": "Kubectl verbs enabled for interactive Kubectl builder. At least one verb must be specified.", | ||
"default": [ | ||
"api-resources", | ||
"api-versions", | ||
"cluster-info", | ||
"describe", | ||
"explain", | ||
"get", | ||
"logs", | ||
"top" | ||
], | ||
"items": { | ||
"title": "Verb", | ||
"type": "string" | ||
}, | ||
"minItems": 1 | ||
}, | ||
"resources": { | ||
"type": "array", | ||
"title": "Resources", | ||
"description": "List of allowed resources. Each resource must be provided as a plural noun, such as \"deployments\", \"services\" or \"pods\".", | ||
"default": [ | ||
"deployments", | ||
"pods", | ||
"namespaces", | ||
"daemonsets", | ||
"statefulsets", | ||
"storageclasses", | ||
"nodes", | ||
"configmaps", | ||
"services", | ||
"ingresses" | ||
], | ||
"minItems": 1, | ||
"items": { | ||
"type": "string", | ||
"title": "Resource" | ||
} | ||
}, | ||
"namespaces": { | ||
"type": "array", | ||
"title": "Namespaces", | ||
"description": "List of allowed namespaces. If not specified, builder needs to have proper permissions to list all namespaces in the cluster", | ||
"default": [], | ||
"minItems": 0, | ||
"items": { | ||
"type": "string", | ||
"title": "Namespace" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "exec", | ||
"description": "Install and run CLIs directly from the chat window without hassle. All magic included.", | ||
"type": "object", | ||
"properties": { | ||
"templates": { | ||
"type": "array", | ||
"title": "List of templates", | ||
"description": "An array of templates that define how to convert the command output into an interactive message.", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"ref": { | ||
"title": "Link to templates source", | ||
"description": "It uses the go-getter library, which supports multiple URL formats (such as HTTP, Git repositories, or S3) and is able to unpack archives. For more details, see the documentation at https://github.com/hashicorp/go-getter.", | ||
"type": "string", | ||
"default": "%s" | ||
} | ||
}, | ||
"required": [ | ||
"ref" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"templates" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Keptn", | ||
"description": "Keptn plugin polls events from configured Keptn API endpoint.", | ||
"type": "object", | ||
"uiSchema": { | ||
"token": { | ||
"ui:widget": "password" | ||
} | ||
}, | ||
"properties": { | ||
"url": { | ||
"description": "Keptn API Gateway URL", | ||
"type": "string", | ||
"default": "http://api-gateway-nginx.keptn.svc.cluster.local/api", | ||
"title": "Endpoint URL" | ||
}, | ||
"token": { | ||
"description": "Keptn API Token to access events through API Gateway", | ||
"type": "string", | ||
"title": "Keptn API Token", | ||
"minLength": 3, | ||
"default": "" | ||
}, | ||
"project": { | ||
"description": "Optional Keptn Project", | ||
"type": "string", | ||
"title": "Project", | ||
"default": "" | ||
}, | ||
"service": { | ||
"description": "Optional Keptn Service name under the Project", | ||
"type": "string", | ||
"title": "Service", | ||
"default": "" | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"token" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Prometheus", | ||
"description": "Get notifications about alerts polled from configured Prometheus AlertManager.", | ||
"type": "object", | ||
"properties": { | ||
"url": { | ||
"title": "Endpoint", | ||
"description": "Prometheus endpoint without API version and resource.", | ||
"type": "string", | ||
"format": "uri", | ||
"default": "", | ||
"minLength": 3 | ||
}, | ||
"ignoreOldAlerts": { | ||
"title": "Ignore old alerts", | ||
"description": "If set to true, Prometheus source plugin will not send alerts that is created before the plugin start time.", | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"alertStates": { | ||
"title": "Alert states", | ||
"description": "Only the alerts that have state provided in this config will be sent as notification. https://pkg.go.dev/github.com/prometheus/prometheus/rules#AlertState", | ||
"type": "array", | ||
"default": [ | ||
"firing", | ||
"pending", | ||
"inactive" | ||
], | ||
"items": { | ||
"type": "string", | ||
"title": "Alert state", | ||
"oneOf": [ | ||
{ | ||
"const": "firing", | ||
"title": "Firing" | ||
}, | ||
{ | ||
"const": "pending", | ||
"title": "Pending" | ||
}, | ||
{ | ||
"const": "inactive", | ||
"title": "Inactive" | ||
} | ||
] | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1 | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"url" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters