mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 10:41:14 +00:00
Add notification config for wcloud
This commit is contained in:
@@ -21,4 +21,12 @@ type Config struct {
|
|||||||
RepoPath string `json:"repo_path" yaml:"repo_path"`
|
RepoPath string `json:"repo_path" yaml:"repo_path"`
|
||||||
RepoKey string `json:"repo_key" yaml:"repo_key"`
|
RepoKey string `json:"repo_key" yaml:"repo_key"`
|
||||||
KubeconfigPath string `json:"kubeconfig_path" yaml:"kubeconfig_path"`
|
KubeconfigPath string `json:"kubeconfig_path" yaml:"kubeconfig_path"`
|
||||||
|
|
||||||
|
Notifications []NotificationConfig `json:"notification" yaml:"notification"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// NotificationConfig describes how to send notifications
|
||||||
|
type NotificationConfig struct {
|
||||||
|
SlackWebhookURL string `json:"slack_webhook_url" yaml:"slack_webhook_url"`
|
||||||
|
SlackUsername string `json:"slack_username" yaml:"slack_username"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user