Create Custom Alerts Using Webhooks and Zapier
With the recent launch of Webhook integrations on Dead Man's Snitch it's now easier to hook our alerts into your systems and operations workflow. Webhooks give you the ability to receive critical notifications about your snitches at custom URLs. Zapier makes it easy to take our Webhook alerts and route them to a large and ever growing list of other systems and services.
In this example, we are going to use Zapier to create an alert log in Google Sheets.
The first step is to log into Zapier and create a new Zap with "Catch Hook" as the trigger.
Next, copy the example JSON payload, paste into the "Pick off a Child Key" text field, and then press "Continue". Feel free to only include the information you would like to receive in the payload. You can check out the documentation on Dead Man's Snitch for more setup options.
"name": "Critical System Reports",
"notes": "Useful notes for dealing with the situation",
"tags": [ "critical", "reports" ],
Once you are on the test step, copy the webhook URL.
Now, add a webhooks integration on Dead Man's Snitch using the copied URL.
After the integration is created, press the "Sent Test" button to send a test payload to the endpoint.
Back on the Zapier page press the "Ok, I did this" button and wait for Zapier to receive your webhook.
Now, set up the action by searching for Google Sheets. Set the action to create a new row in a specific spreadsheet.
After you've connected your Google account and selected a spreadsheet, create headers for all the information in the payload.
Populate all the columns with the sample JSON information from the payload.
Make sure to save your Zap and give it a creative name! Now when Dead Man's Snitch alerts on a failed or missing job, it will automatically update your spreadsheet with the information you customized.
Is there another webhook integration you would like us to look into? Let us know!