Trigger event after x occurrences within x period

Not Yet Reviewed

 Hi! 

The problem i am trying to solve is for xMatters to only call out a user if x email alerts have been recieved within x period of time.  Has anyone had to do similiar or know how xMatters could be configured or scripted to achieve this?

Thanks!

0

Comments

3 comments
Date Votes

Please sign in to leave a comment.

  • Hi Adam,

    You can initiate an event by sending an email to xMatters. When xMatters receives a form initiation email from a valid sender, it initiates the corresponding event and uses values provided by the email to set text properties of the event. The email address and mapping information is defined with the form in the communication plan builder.

    Here is some additional information:

    https://help.xmatters.com/ondemand/xmodwelcome/communicationplanbuilder/initiatingaformbyemail.htm

     

    0
  • Thanks Thomas.  I have already set this up and it is working however i'd like xMatters to only initiate an event after 10 emails have been received in 5 minutes.  That is my challange.

    0
  • Hey Adam!
       So you want to ignore the first 10 and then initiate an event on the 11th invocation? We don't have a capability to do that as we don't have a state machine we can track this with. 

    Are you really tied to an email initiation? That limits what we can do, for example if we could do a REST call, something that is close is flood control, doc'd here. It would do more like, invoke event, then ignore the next 10 in 5 minutes. Right now this is instance wide, but we're working on building it out for comm plans and integrations. 

    If you're really tied to email initiation, we could try this:

    1. Set the email initiated event to target no one
    2. Create an outbound script that fires on event status. Write the script to check the event status is "active", make a REST call to the GET /events API endpoint to retrieve all the events with some propertyNames and propertyValues and see if the number of events is more than 9. If so, then create a new event with some actual recipients. 

    It would involve some scripting, but it shouldn't be too crazy if you're familiar with the concepts. And of course we'd be happy to help you out here. 

    Happy Friday!
       --- Travis

     

    0

Didn't find what you were looking for?

New post