Application Framework Reference

Splunk API

setMaxTime()

The setMaxTime() method sets the maximum time for a search.

Note: In general, the default value should not be changed.

Synopsis

setMaxTime( maxTime )

Parameters

maxTime

Integer

Maximum search time, in seconds. Default = 0, no constraint.

Return Value

Undefined

Example

var context = this.getContext();var search  = context.get("search");
search.setMaxTime(31337);
context.set('search', search);
return context;
 

See Also

getMaxCount()
getMaxEvents()
getMaxTime()
setMaxCount()
setMaxEvents()
Splunk.Context