Bring Your Own Code
Most recent version: v0.0.1
Last updated
Was this helpful?
Most recent version: v0.0.1
Last updated
Was this helpful?
Note that this Action is only available in certain Tenants. if you don't see it and want to access it.
The Bring Your Own Code Action enables dynamic execution of user-provided Python code in isolated environments in an Onum pipeline. This way, you can use your own Python code to enrich or reduce your events directly.
These are the input and output ports of this Action:
To open the configuration, click the Action in the canvas and select Configuration.
Enter the required parameters:
Configuration
To indicate where you want to execute your code, you must either choose a Docker client instance or enter its corresponding IP/port in the configuration options below.
Docker client
Choose one of the available Docker instances to execute your code.
IP
Enter the instance IP to execute your code.
Port
Enter the instance port to execute your port.
Timeout connection
Enter the milliseconds to wait for the Docker connection.
Buffer size
Size in bytes to batch events.
Code
In future updates of this Action, you'll be able to update your code as a .zip file. This option is currently not available
Paste your Python File in this area. You can include any required Dependencies in the corresponding tab.
AI Assistant
You can use the AI Assistant to generate the Python code you require. Simply click the icon at the bottom of the configuration menu and enter the prompt that indicates the results that you need.
Finally, give your Output Field a name. Click Add field if you need to add any additional fields.
Click Save to complete.
In order to configure this Action, you must first link it to a Listener or another Action. Go to to learn how this works.
Find Bring Your Own Code in the Actions tab (under the Advanced group) and drag it onto the canvas. Link it to the required and .
Learn more about our AI Assistant in .