So i currently have a monitor set up that sends an alert, but after 5 mins it also send a recovery alert. What i wanted to find out was is it possible to have a monitor that only sends the alert but no recovery alert.
I need a one off alert on error thats it.
To extend onto draav's answer, your notification template should look like this when notification needs to be sent only in case of alert
{{#is_alert}}
This is my alert content!
@[email protected]
{{/is_alert}}
This approach can be further extended when we want to notify different users for different type of notifications.
Below example sends alert notification to [email protected] and recovery notification to [email protected].
{{#is_alert}}
Something went wrong!
@[email protected]
{{/is_alert}}
{{#is_alert_recovery}}
Things are back to normal!
@[email protected]
{{/is_alert_recovery}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With