mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add discord as a possible receiver in cloud rules (#59366)
This commit is contained in:
parent
dc918f7e91
commit
1020e33409
@ -330,6 +330,26 @@ export const cloudNotifierTypes: NotifierDTO[] = [
|
||||
httpConfigOption,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Discord',
|
||||
description: 'Sends notifications to Discord',
|
||||
type: 'discord',
|
||||
info: '',
|
||||
heading: 'Discord settings',
|
||||
options: [
|
||||
option('title', 'Title', 'Templated title of the message', {
|
||||
placeholder: '{{ template "discord.default.title" . }}',
|
||||
}),
|
||||
option(
|
||||
'message',
|
||||
'Message Content',
|
||||
'Mention a group using @ or a user using <@ID> when notifying in a channel',
|
||||
{ placeholder: '{{ template "discord.default.message" . }}' }
|
||||
),
|
||||
option('webhook_url', 'Webhook URL', '', { placeholder: 'Discord webhook URL', required: true }),
|
||||
httpConfigOption,
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const globalConfigOptions: NotificationChannelOption[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user