Configuration Templates allow us to apply customizations such as Email Templates to Rigor checks. This feature is only available to users with administrator permissions.
Email Templates let us customize the following aspects of Rigor alert emails:
- Email sender
- Subject line
- Body/Content (with plain text or custom HTML)
We can use the following variables to automatically populate data from Rigor into templates, which can also be found by clicking the 'Help' button in the upper-right corner of the page. Remember to encapsulate the variables in braces:
Check data available | |
---|---|
Name | check.name |
Rigor URL | check.rigor_url |
URL | check.url |
Alert data available | |
---|---|
Description | alert.description |
Location | alert.location |
Notified | alert.notified |
Rigor URL | alert.rigor_url |
Screenshot URL | alert.screenshot_url |
Status | alert.status |
Alert time | alert.time |
To create an email template:
- Admin > Email Templates > New
- Add 'From', 'Subject', and Body content for the email template
- Click Create
In order to use the email template for a check’s alert emails, first create a new Configuration Template:
- Go to Admin > Config Templates > New
- Name the configuration template so that it’s easy to identify later
- Select the email template to associate with the configuration
- Click Create
Now that we have a Configuration Template created with a custom Email Template associated, we can apply the Configuration Template to any check to enable the custom email template for that check’s alerts:
- Edit any check and click on the ‘Advanced’ tab
- Next to the Configuration click ‘Change’
- Click ‘Select’ next to the Configuration Template with the Email Template you’d like to apply
- Click Save