The easiest way to set up a webhook is by setting up a public webhook.site to get the unique URL ID to do the demo.
This document describes how to use AtScale with webhook.site and with SLACK API.
Webhook.site
Use a browser and go to https://webhook.site
By default, you’ll be given a unique URL. Since this is a community version, you can’t save/modify much of the information like with a paid version. However, this will give you enough information on what AtScale sends to the receiver.
Copy the unique URL:
In this example, the URL is https://webhook.site/49b7554a-2640-4984-9a39-f74d8d5cffa9
Next, get the AtScale webhook event set up.
Go to AtScale Webhooks Settings:
Then paste the unique URL in the Webhooks Event field for (pick one). For this example, we're using a publish event.
The next step is to publish the project to invoke the event, which sends the message to the webhook.site.
After publishing the project, you’ll see a new message in the webhook.site:
You will also see a lot of information about the project:
This site will help you identify attributes sent by AtScale events so you can build a listener that can capture information about each and relay that to other events.
E.g., Webhook events
- aggregate build: if fail, send email/message
- Slow-running queries for specific project/cube
SLACK
This is a simple step-by-step guide on how to set up webhook event notifications from AtScale to Slack.
The first step is to create a workflow in Slack for inbound requests.
Select Workflow Builder
If this is the first time, you’ll have no workflows, so click on Create and enter a workflow name.
Next, set up your Webhook
Select Webhook
Click Next. Set up a simple webhook + simple workflow (you can add more variables to trap other events later). From this screen, click Next.
Then, to get notified when the event is triggered, click Add Step.
Choose Send a message.
You can enter the email of who will receive the message when the event is triggered.
Then Publish.
Upon publishing, you’ll get a URL:
Copy the URL and paste it in the AtScale Webhook.
That’s it! You just created a simple notification in Slack for AtScale webhook events.