The parameters the python endpoint receives are sent by the javascript part of the module. You can override the generation of this parameter list:
<app>/appserver/module/MyFunkyModule/MyFunkyModule.js
Splunk.Module.MyFunkyModule = $.klass(Splunk.Module.DispatchingModule, {
...
getResultParams: function($super) {
var params = $super();
params['startsize'] = this.getParam('startsize');
params['endsize'] = this.getParam('endsize');
return params;
}
...
}
then you'll be able to use it in python:
<app>/appserver/module/MyFunkyModule/MyFunkyModule.py
def generateResults(self, host_app, client_app, sid, count=1000, offset=0, entity_name='results', startsize, endsize):
... View more