Giter Site home page Giter Site logo

xmgroupsnotactivemulti's Introduction

xmGroupsnotActiveMulti

xmatters contact supervisors of groups not active In the script for "Get a list of groups, change the path in the POST to the id of "Start event - Trigger notify for incomplete group"

Integration to Detect Groups without rosters This is a compound integration to solve that problem of whether any of my groups have shifts with no members. Whilst you can do this through the web interface it relies on you going in and looking. With this new integration you can have a scheduled task kick this off every day to report on a list of groups you provide and it will message you with any gaps and empty shifts.

It does not have all the bells and whistles, it doesn't have nice message formatting etc, but should give you a great head start. They are all easy for you to fix, I wanted you to have some of the fun!

Regarding scaling, this isn't going to work for big numbers of groups as the flow designer script will timeout. How big you can go, who knows. Give it a try and see.

How it works An event is manually generated in the xMatters user interface with a list of group names to check. This event should be scheduled based on the periodicity the check should be performed. Once the event is created, the event status trigger kicks off and passes the group list to a step. This step iterates through the list and for each group calls the HTTP trigger to continue the process. The HTTP trigger receives the group name and then makes a series of queries to determine if the shift schedule contains gaps. If so, the group's supervisors are identified and an event is triggered letting them know they need to get coverage for their group.

Pre-Requisites An xMatters account. Developer access. Files IncompleteGroups.zip - The workflow (that has all the scripts and such). Installation The set up (xMatters) Import the IncompleteGroups.zip workflow. Navigate to Flows > Start event canvas. Double click the Check Group HTTP trigger and copy the url:

Paste the url into a text editor and extract the "path" portion of the url by removing the entire first part of the url up to the .com. It should be something like /api/integration/1/functions/UUID/triggers?apiKey=API_KEY. Open the Constants and paste this path value into the Value of the HTTP Trigger Path constant:

Save the canvas. Click Messaging from the left navigator menu and click Start event. Enter the comma separated list of groups to check. Remember not to include a space after the comma.

If you want to only fire this once for testing, click Send Message. If you're satisfied, click the Schedule Message button and enter the time and day the message should fire. (Ignore the "No Recipients Selected" warning. The group supervisors will be determined at runtime.)

Testing To send a quick one time test, click Messaging from the left navigator menu and click Start event. Enter the comma separated list of groups to check. Remember not to include a space after the comma.

Then click Send Message. This will just fire the event once and then stop.

Troubleshooting Investigate the activity stream in the canvas for any errors.

xmgroupsnotactivemulti's People

Contributors

wizzardprang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.