-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: validate_input function doesnt comes with helper func param anymore ? #1348
Comments
Hey @mdisec Sorry for the late response I think you are referring to Add-on Builder-generated add-ons, they indeed have a I totally understand your use case, let me talk to the team and I'll circle back to you here. |
Thank you for the reply @artemrys ! Let me share what I've ended up to use is as follow. They might help the team to evaluate why I kindly ask for these helpers :D I've implemented following helper functions in order to create a proxy aware http client.
I use
I'm literally using python's About the checkpoint stuffIn terms of checkpoint helper replication, I ended up directly using
In general, I believe UCC can be easily used by developers to develop their own add-ons to ingest data from their SaaS solution without even touching to the "Splunk Add-on Builder". Having old helpers within the UCC would be lovely since people like me who are new to the splunk app development can easily develop their app via UCC without the hustle I've been going through <3 |
Description
Hey,
I would like to validate the API tokens during the configuration phase, thus I need to access
helper
instance. All the examples that I've seen on the existing add-ons has following code from the _helper.py file generated by ucc.But what I've seen on my _helper.py file is following one.
I would like to have an access to the helper instance because of it's proxy aware http client function etc.
Otherwise I guess I have to access to the metadata fields of the ValidationDefinition and fetch the sessionid and use conf_manager.ConfManager like it's being used at
get_account_api_key
function that is auto generated ?I would like to simply build a proxy aware (I mean I wanna use proxy details defined under the Configuration > Proxy of the add-on instead of global one) http client in order to validate the API token before saving the "input" so that I can make sure our SaaS is accesible before Splunk try to ingest the data. What is the best practice for this ?
I also would like to use the helper within the
def stream_events
for get_check_point etcWhat UCC version are you using?
Latest
Additional System Info
WSL
The text was updated successfully, but these errors were encountered: