Instant notification anyone? We believe in an API-centric world. Hence we are very excited to introduce Nouvola WebHooks, a very powerful yet simple mechanism for web communications that expands our API capabilities.
What is a Webhook?
A webhook lets a developer provide a URL to which an API will send data.
Sometimes people call webhooks web callbacks, but essentially a webhook lets you skip a step. With most APIs there is a request followed by a response. No request is required for a webhook, it just sends the data when they are available.
Using Nouvola Webhooks
To use a webhook, you need to provide a URL that is accessible from the outside world, so that it can be called back once execution is completed. This URL is where your application will accept the data and do something with it. To set up the webhook, you will register this URL with Nouvola DiveCloud, using a specialized API. When a test completes, the webhook will send it to your URL.
Advantages of Nouvola Webhooks
- No need for polling. The greatest advantage of using a webhook is that it removes the need for polling, which is resource intensive on both sides.
- Real-time use case. The second biggest advantage is that it enables a real-time use case. If you don’t know when a test ends or you’re running synthetic monitoring, you want to get the data as soon as they are available. Without a webhook, you may lose meaningful data.
- Downstream actions. Getting new and updated data also highlights another great use case for webhooks. If you run synthetic monitors and you want to take specific actions based on a change in certain metrics, you can get updated data with a webhook and have instantaneous integration with dashboard / downstream tools.
Nouvola WebHooks Examples
You first create a hook to register an event and resource by using the hooks API.
For example, the following call:
registers a hook to receive a callback when the specified test plan has completed the execution.
On successful hook registration, the response is the following json:
The callback contains json data in the body, in the format of:
Once you receive this message you can use other APIs to retrieve more detailed results (see API - Results for more info).
Want to know more?
For additional details, see Nouvola Webhooks help.
Want to know more? Request a demo to get a live walk-through of the full range of APIs available with Nouvola DiveCloud, and try it out for yourself.
Here’s to even happier, more efficient performance testing with webhooks!