there are two possible ways that Enterprise Alert can trigger policies based on an email’s timestamp.
- Adjusting the policy to only alert based on the destination team’s business hours
Option 1 is the easiest one and what we would like to recommend. Option 2 requires you to have the scripting host, scripts and requires a lot more effort.
To put in place option 1:
- The destination team needs to have business hours set. I believe this is done by default so you will just need to adjust the times according to the use case.
- The policy alerting options need to be set to trigger either outside or inside the team hours. So if you have the team business hours set for only at night, it would be inside. If they are set during the day, it would be outside.
By default, when you create a policy the option here is set to Anytime (24x7) so setting hours for your team in step 1 will not break any other alerts that are set to go to that team.
- You can test this by sending emails to Enterprise Alert and in the Message Log it will show whether the policy was triggered (of course you will get the alert also) or it will show that the policy would have been triggered but it was not alerted.
A triggered policy will look like this:
Emails coming in outside of the hours will be indicated like this (Outside Business Hours)