-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update schema * asd
- Loading branch information
Showing
13 changed files
with
12,660 additions
and
5,751 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 |
---|---|---|
|
@@ -434,6 +434,58 @@ func commandExample(cCtx *cli.Context) error { //nolint:funlen,maintidx | |
User: "smtpUser", | ||
Password: "smtpPassword", | ||
}, | ||
Alerting: &model.ConfigGrafanaAlerting{ | ||
Enabled: ptr(true), | ||
}, | ||
Contacts: &model.ConfigGrafanaContacts{ | ||
Emails: []string{ | ||
"[email protected]", | ||
}, | ||
Pagerduty: []*model.ConfigGrafanacontactsPagerduty{ | ||
{ | ||
IntegrationKey: "integration-key", | ||
Severity: "critical", | ||
Class: "infra", | ||
Component: "backend", | ||
Group: "group", | ||
}, | ||
}, | ||
Discord: []*model.ConfigGrafanacontactsDiscord{ | ||
{ | ||
Url: "https://discord.com/api/webhooks/...", | ||
AvatarUrl: "https://discord.com/api/avatar/...", | ||
}, | ||
}, | ||
Slack: []*model.ConfigGrafanacontactsSlack{ | ||
{ | ||
Recipient: "recipient", | ||
Token: "token", | ||
Username: "username", | ||
IconEmoji: "danger", | ||
IconURL: "https://...", | ||
MentionUsers: []string{ | ||
"user1", "user2", | ||
}, | ||
MentionGroups: []string{ | ||
"group1", "group2", | ||
}, | ||
MentionChannel: "channel", | ||
Url: "https://slack.com/api/webhooks/...", | ||
EndpointURL: "https://slack.com/api/endpoint/...", | ||
}, | ||
}, | ||
Webhook: []*model.ConfigGrafanacontactsWebhook{ | ||
{ | ||
Url: "https://webhook.example.com", | ||
HttpMethod: "POST", | ||
Username: "user", | ||
Password: "password", | ||
AuthorizationScheme: "Bearer", | ||
AuthorizationCredentials: "token", | ||
MaxAlerts: 10, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.