Webhook AidboxTopicDestination
This page describes an AidboxTopicDestination, which allows sending events described by an AidboxSubscriptionTopic to a specific HTTP endpoint.
The webhook AidboxTopicDestination works in the following way:
Aidbox stores events in the database within the same transaction as the CRUD operation.
After the CRUD operation, Aidbox collects unsent messages (refer to the
maxEventNumberInBatch
parameter) from the database and sends them to the specified endpoint via a POST request.If an error occurs during sending, Aidbox will continue retrying until the message is successfully delivered.
Configuration
To use Webhook with AidboxSubscriptionTopic you have to create AidboxTopicDestination resource.
You need to specify the following profile:
Available Parameters
Parameter name | Value type | Description |
---|---|---|
| valueUrl | Webhook URL. |
| valueUnsignedInt | Timeout in seconds to attempt notification delivery (default: 30). |
| valueInteger | The time in seconds that the host will allow an idle connection to remain open before it is closed (default: 120, |
| valueUnsignedInt | Maximum number of events that can be combined in a single notification (default: 20). |
| valueString | HTTP header for webhook request in the following format: |
* required parameter.
Examples
Status Introspection
Aidbox provides $status
operation which provides short status information of the integration status:
Response format:
Property | Type | Description |
---|---|---|
| valueDecimal | Total number of batches that have been successfully delivered. |
| valueDecimal | Number of batch delivery attempts that failed. It represents the overall failed delivery attempts. |
| valueDecimal | Total number of events that have been successfully delivered. |
| valueDecimal | Number of delivery attempts that failed. It represents the overall failed delivery attempts. |
| valueDecimal | Current number of events in the buffer being processed for delivery. |
| valueDecimal | Number of events pending in the queue for send. |
| valueDateTime |
|
| valueString |
|
| part | Information about errors of the latest failed attempt to send an event. This parameter can be repeated up to 5 times. Includes the following parameters. |
| valueString | Error message of the given error. |
| valueDateTime | Timestamp of the given error. |
Last updated