From 1020e33409ced238de4dd1b9121f545540fdf3ba Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:23:21 +0100 Subject: [PATCH] Add discord as a possible receiver in cloud rules (#59366) --- .../cloud-alertmanager-notifier-types.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts b/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts index 4dcf2e44fdd..9f250b46db0 100644 --- a/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts +++ b/public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts @@ -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[] = [