GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.stackify.com — Webhooks Generic Webhooks in RetraceNow you can integrate Retrace with the other tools in your DevOps arsenal. With the rise of interoperability and the sharing of data, Retrace’s Generic Webhook supports the delivery of alert notifications and newly discovered or regressed errors to external systems. The Retrace Webhook implementation takes advantage of the notification engine that customers are already familiar with. Once configured, a webhook can be added to notification groups just like any other contact or Slack integration. Instead of sending a preformatted email or text message, webhooks send a JSON payload representing the event that can be used by the consumer for any number of business processes. One common usage of Alert webhooks is to create a Defect Ticket and/or Support escalation in an external application. Error webhooks could be used in a similar workflow to externally track new and regressed errors in your system. Types of WebhooksCreating a webhook integration is the same process for both usage scenarios. Creation of the static URL in Retrace in not affected by the intent of usage. Retrace will allow a single webhook to be used for Alert and/or Error notifications. The payload delivered to the endpoint depends on how or where it is configured in a Notification Group. If the endpoint is capable of handling both types of payloads sending both types of messages to a single endpoint is an acceptable scenario.
In the example above, two separate endpoints have been created and added to a notification group. Each endpoint has been configured to handle the specific payload for its intended usage.
Alert WebhooksWhen an Alert is sent to a webhook, the following payload is posted. Field Definition
Example Payload
Errors WebhooksWhen a New or Regressed Error is sent to a webhook, the following payload is posted. Field Definition
Example Payload
Creating Your Webhook IntegrationTo set up the integration, log in to your account and click on the Settings tab as shown below. Under the Integrations section, click on the Webhook link.
This screen allows you to add new and manage your previously created webhooks. To create a new webhook, use the Add Webhook button.
Enter a Webhook Name and URL. It is our best practice to include the intent in the name for ease of use when configuring the notification group. Example Using ZapierZapier is a popular platform that facilitates integration of disparate systems through configurable mapping. Users can set up an incoming hook in Zapier and route the action to some other system. Step 1: Make a Zap (Webhook)
Step 2: Use Zapier Webhook URL
Step 3: Configure Zapier ActionThe final step in Zapier is to determine the destination system and map the fields. Many software products have pre-built integrations that facilitate this process. When mapping the output from Retrace into the Zapier action, simply surround the field names with double braces like {{This}}. When Zapier receives an incoming post, it will replace the {{This}} with the contents of the JSON field This if it exists. As an example, you can link Zapier to a Google Drive account and create a new text document that details an alert. Paste the following text into the “File Content” section of the Google Drive integration to start capturing Alerts as Documents in Google Drive.
Step 4: Configure Alert Group in RetraceWebhooks can be used in any notification group you have configured. For instructions on how to configure notification groups, follow the documentation at Alerts & Notifications. Once you are done with the process, click on the newly created notification group name. In here, we used the Client Sample as an example.
Click the Contact tab and click on the Add Contact button. Click on the Webhook name that you created earlier.
The webhook is added, and you can configure its alerts by selecting the webhook option as shown below and click Save.
It will show a notification that it has been saved. Testing the WebhookTo test if a Webhook has a valid endpoint defined, click the Test button. A valid URL returns an OK result, otherwise, it will return an error.
Verifying the WebhookYou can verify if the webhook integration is working once the intended destinations receive the details of the alerts or error notification from Retrace. You can also use curl, postman or other tools to post sample payloads to the webhook endpoint to test and refine your integration. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |