Create Webhook Subscription
Create Webhook Subscription Dialog
Last updated
Create Webhook Subscription Dialog
Last updated
Open the Webhooks module in the Alert section.
Click Create Webhook Subscriptionin the top right corner.
Fill in all required fields listed below in the Create New Subscription window.
Click Create.
Field | Description |
User | User to receive the notifications |
Object Type | Name of the subscribed Dataloy object |
Event Type | Type of event to Object |
Alert Script | Subscribe to events based on the result of a DLPAlertScript. |
Channel Type | Channel used to send notification |
Url | Endpoint to receive the subscription |
Field Conditions
A webhook subscription can only have an Object Type and an Event Type or an Alert Script. The corresponding fields are disabled to match this condition.
If the Channel Type chosen is HTTP, then the URL field must also be filled in.
When choosing HTTP as Channel Type, you can also choose whether to add the Password, Access Token or Request Access Token fields.
This is an optional field to write a Java expression against the object changed.
On this input area, you can also write the expression by choosing in a menu the wanted field.
Press dot ( . ) to see the menu.
You can either scroll through the menu or type the wanted field.
Choose the desired field. If the chosen is an object, the menu will now show the fields of that object.
A list of operators is also available by pressing the dollar sign ( $ ). Please make sure there is a space before and after the operator.
You can use the expression to check the previous value of the object.
Press comma ( , ) to see the menu.
You can either scroll through the menu or type the wanted field.
Choose the desired field. Choosing a field from this menu will result in this format: old.chosenField. If the chosen field is an object, the menu will now show the fields of that object. Press "." for this menu and to continue to traverse the fields.
The expression created in this walkthrough will result in the following:
This expression will be translated in a way that you will get notified if the new voyage result is greater than the old voyage result.