Configure derived attribute functions in the feed application
Apply custom Python logic to your data streams by configuring the derived attribute in the feed management UI.
About this task
After the developer implements the Python script, adds the JSON configuration, and restarts the services, you can configure the enhancement in the feed application.
Procedure
- In the Detect UI, navigate to the feed management section where you want to add the enrichment.
- Create an Enrichment, and navigate to the Derived Attributes tab.
- Select Add derived attribute.
- Select your newly defined Python function from the list.
-
Provide the required configuration values.
For example, if using the GST calculator, enter double values for the specific region. You might enter 20.0 for the GST rate and 4.0 for the surcharge amount.
-
Verify that the required tuple attributes are present.
The UI displays a checkmark next to the used attributes (such as transaction amount) if they exist in the incoming tuple. If an attribute is missing, the UI flags an error with a cross button, indicating the calculation will fail.
- Select Add attribute, and then save the configuration.