When working with function parameters in Resilient (from pre-processors), I have had several instances of needing to pass data types that are (seemingly not supported) by Resilient, specifically tuples. Generally, I have settled on setting the field type to text (string) and then using various string manipulation methodologies in the function to convert the string to the data type desired.
Currently, I'm working on building a Tenable integration for Resilient. I need to pass more complex tuples through to the functions as parameters. The method I had been using will not work for these (as my prior method was for simple tuples with one set of parentheses.
Is there a better way to do this, other than using clunky string manipulation methods within the function? If not, does anyone have a method already designed for this?
Example:
inputs.tenable_filter = ('severity', '=', '4'), ('exploitAvailable', '=', 'true')
# Above results in: "
Unable to set value [[severity, =, 4], [exploitAvailable, =, true]] for Field tenable_filter"
------------------------------
Jared Fagel
Cyber Security Analyst Intern
Public Utility
------------------------------