Check email was received

Not Yet Reviewed

Hi Community,

We have overnight batch process running on vendor sites. A successful email is sent to us once the batch process is complete. However, there are few times where this job fails and we do not receive any notification. Unfortunately, our in-house batch process depend on these jobs running successfully.

Is there a way to verify if a email has been received in a given time? i.e from 1 am to 2 am

If the email was not delivered, XMatters would send an Alert to Vendors.

Most of our process rely on receiving successful email notifications, but I think is better to be notified only when there is a failure. 

Thanks,

 

0

Comments

1 comment
Date Votes

Please sign in to leave a comment.

  • Hey Kyc. Interesting use case. 


    At a high level, you would create a new comm plan with 3 forms:

    1. Scheduled check
    2. Batch Successful
    3. Bad stuff happened

    The `Batch Successful` form would be an inbound email integration from your batch scheduling job and would notify no one. (Assuming you want the email directly the batch tool, if you'd rather get that notification via xMatter, you can target whoever you'd want.) This represents a successful email from the batch job, so we need to search for the absence of it. Next, you would need a form called `Scheduled check` which wouldn't do much except terminate at 2 am and also wouldn't notify anyone. There would be an outbound integration on event status change that would run a script and query the GET /events API and query for any events from the `Batch Successful` form. If none events are found, then generate another event on the `Bad Stuff Happened` form and target whoever needs to be rousted out of bed at 2am to check out the job.

    It would take some javascripting, but it's possible. 

    If we had an API call or parameter to schedule a recurring integration execution, we could simplify that a good deal. But I noted this in the PM ticket. 

     

    0

Didn't find what you were looking for?

New post