-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Labels
feature requestNew feature or requestNew feature or requestneeds triagepart:alert flow & configuration
Description
What would you like to see!
While there is possibility to notify users via e-mail, I would like to see possibility to trigger e-mail based on alert payload. In our shop we're getting alert from many different sources and some of source specify contact persons / e-mails in alerts. What is required is to have the same functionality "Outgoing webhooks" have, but in this case they would trigger e-mail notifications.
Example
Alert payload:
{
"message": "Something bad is happening",
"mail": [
"foo@example.com",
"bar@example.com"
]
}This would trigger "Outgoing e-mail" using Jinja2 templates - one for subject, message and recipients:
# Adding all templates here, but in reality these would
# be 3 inputs similar to how they are for existing e-mail notifications
# --- Title (subject) template ---
{{ payload.message }}
# --- Message template ---
Hello,
you should check this: {{ payload.message }}
# --- Recipients template, should accept comma separated list ---
{{ payload.mail | join(",") }}The result would be mail sent to "foo@example.com,bar@example.com".
Product Area
Alert Flow & Configuration
Anything else to add?
No response
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or requestneeds triagepart:alert flow & configuration