Open micahkemp-splunk opened 4 years ago
Hi @micahkemp-splunk, right now the team is focused on addressing bug fixes and security updates so I'm not sure when an enhancement like this would be possible but could you break down what you are trying to address/make easier a bit more? This will help us determine the right priority. Also let us know if this is still something you are interested in pursuing, I know it's been nearly two years since this was put up.
For example, I think you're addressing at least four different usability problems:
Script
class rather than requiring users to implement parsing and validation themselvespreflight
, process_input
, and postflight
process_input
is called only once per configured input: it would be great to understand how you intend to accomplish this or the issue you have with the current stream_events
implementation
In an attempt to have similar design patterns to how custom search commands are created, and also to make the definition of the scheme, member access to configuration values, automatic casting of configuration types, and convenient .spec file generation, I implemented a proof of concept for decorators for the Script class. It mimics much of how the search command decorators are implemented, with changes where necessary. The functionality isn't fully complete, and is lacking validation of decorator parameters, but before spending a lot more time polishing and making it complete I wanted to get feedback regarding the willingness of the SDK team to merge such a PR, and also to get early feedback regarding which pieces the team would want implemented differently.
The summary of what this PR accomplishes is shown in this code snippet: