Event Hooks
The Event Hooks service is a centralized hub for handling event notifications from the near-lake
stream. It enables users to receive near real-time events at user-specified URLs, ensuring timely notifications for specific events occurring within their shard.
Setting up Event Hooks
To use the Event Hooks, you need to enable it manually in the Console by following these steps:
Open the Calimero console and navigate to the Event Hooks section in the side menu.
Click on the Enable feature button.
- Click on the Add webhook button to register a new webhook.
- Set up your webhook by providing a unique URL for event reception. Optionally, you can add an authorization token to enhance security.
- Select the events you want to receive notifications for or enter your regex to match the logs.
- Click on the Save button to save your webhook configuration.
Once saved, you can access your webhook details.
Users have the flexibility to define multiple webhooks, each with a unique URL. If you wish to receive notifications for additional events at an existing URL, simply add those events to the existing webhook. This eliminates the need to create a new webhook for each event, allowing you to receive customized information for multiple events using a single webhook.
Received event
Once a defined event occurs, you will receive the corresponding data on your configured webhook. Here is an example of a FunctionCall
event: