Webhooks

Overview Copied

The Webhooks page allows you to configure the publishing of events data to external applications using API calls. You can connect to multiple APIs or applications by creating multiple Webhooks. This allows you to easily build bespoke integrations with your preferred tools.

This page also displays the status of all existing Webhooks and allows you to create new Webhooks.

Webhook configuration Copied

To configure Webhooks, you must have administrator permissions for Gateway Hub.

To create a Webhook, click New Webhook. This opens the Webhook configuration page. You must enter the details of the external applications API. Gateway Hub will send events by performing an HTTP request.

Field Description
Name Name of the external application.
URL URL of the target API.
Method HTTP request method. Choose from POST or PUT.
Batch size

Number of events to send in each batch. Setting this to 0 disables batch publishing.

Default: 0

Enable or disable this Webhook using the toggle labelled Enable Webhook.

Webhook requests Copied

Once a Webhook is configured Gateway Hub will perform requests with specified method. The payload of a request has a form similar to the following:

Requests made by Webhooks have the following fields:

{
  "version": "1.0",
  "type": "event",
  "primaryKey" : "1/snooze",
  "data": 
    {
      "timestamp": "2019-08-26T09:34:45.256Z",
      "entityId": 1,
      "attributes": { ... },
      "type": "snooze",
      "event": {  }
    },
  "operation": "update"
}
Field Description
version Data schema version. This version will only change if Gateway Hub changes it's publishing format to one that is not backwards compatible.
type

Payload type. The available options are:

  • event

primaryKey String that uniquely identifies the source.
data.timestamp Timestamp of this event.
data.entityId Gateway Hub entity ID this event refers to.
data.attributes Attributes of the Gateway Hub entity specified by the data.entityId field.
data.type Type of event.
data.event Raw event payload provided by Gateway.
operation Gateway operation type.

Authentication Copied

The Authentication section allows you to configure authentication for the target API. The options are:

If you select Basic, then you must set the following options:

Field Description
User Username used to connect to the API.
Password Password used to connect to the API.

Attributes Copied

The Attributes section allows you to specify the information included in the events data.

Each event corresponds to a change in the state of an entity. You can specify which attributes of an entity should be included in the event data.

To include data about an attribute:

  1. Click .
  2. Select an attribute from the drop-down list.

Filtering Copied

Snapshots Copied

You can create a snapshot of the latest events in order to reset an external system in the event of a failure.

["Geneos"] ["Geneos > Gateway Hub"] ["User Guide"]

Was this topic helpful?