Destinations
A destination refers to the final target where processed or transformed data is sent after passing through a pipeline. It handles the final output, whether by storing the data, triggering further processes, or integrating with other systems. To manage this, destinations provide three key functionalities:
- Setup initializes necessary resources or connections, like opening a database connection or authenticating with an external service.
- Execute handles the actual data processing, such as sending the data to an API, inserting it into a database, or uploading it to cloud storage.
- Teardown ensures proper cleanup by closing connections and releasing any resources used during the setup or execution phases.
How to create a new Destination
A Destination can be created from scratch or from predefined apps.
To create your very own Destination from scratch:
- Login to your cnips instance
- Click on Destinations in the left navbar
- Click New Destination.
- Provide a name for the Destination.
- Provide some configuration.
- Select the scripting language.
- Modify script to update event data.
- Click on sumbit.