Is it possible to set up alerts if I don't get an Email until a certain time

Leo Waldthaler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2024

We have a system that should send out a notification email until 4 am to signal that the loads have succeeded. Is it possible to configure opsgenie in a way that I get a notification in case the email does not arrive until 4 am?

1 answer

0 votes
Talar Pavlovic
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 21, 2024

Hi there Leo, 

Thanks for writing into Community, I'm Talar from the Atlassian Opsgenie support team, happy to help! 

There are 2 ways I could see this working, I'll list them both below for you to consider - you will need to make some considerations based upon variables in your environment.

OPTION 1: via Heartbeats 

  • Heartbeats allow you to monitor external systems
  • They can be set up to expect an email at regular intervals - if the email does not arrive at the expect time, the Heartbeat will "expire" causing an Alert to be created 
  • You can read more about them here: https://support.atlassian.com/opsgenie/docs/add-heartbeats-to-monitor-external-systems/ 
  • Downside here is that the heartbeat will expect an email within your interval - and that interval resets when the email comes in. So, for example, if your interval is set for 3 hours, and an email comes in at 11:00am, it will expect another by 2:00pm
    • In your use case, let's say your interval is set to 24 hours. if the loads succeed at 3am and the email comes in then, the heartbeat will then expect another email by 3am (not by 4am). 

 

OPTION 2: via Email

  • Here we'd look at having an alert that is created by your system, and suppressed via Notification Policy until 4:10am the next day. 
  • You'd then look to set up a "Close Alert" action in your Email integration to match the contents of the email that you expect at 4am. If the email comes in (to Opsgenie), Opsgenie will close the alert, and you won't be notified. 
  • If the email does not come in by 4:10am, the alert will remain open and you will be notified. 
  • Please note, for this to work, a new Alert will need to be created each day to be "closed" by your system 
    • This can be automated in a few ways (e.g. via an API script, or via an Email from your system when it starts the loads etc) 
  • I would suggest creating a separate Email integration for this purpose 

 

Hope this helps!
Talar

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events