Application Framework Reference

Splunk API

setSelectedEventAvailableCount()

The setSelectedEventAvailableCount() method sets the search job event available count to the specified value. You should use this method to select a sub-range of the original time range for getEventAvailableCount() to return accurate results.

Synopsis

setSelectedEventAvailableCount( count )

Parameters

count

Integer

Event available count.

Return Value

Undefined

Example

var context = this.getContext();var search  = context.get("search");
search.setSelectedEventAvailableCount(totalEventsAvailable);
search.setSelectedEventCount(totalEvents);
var range = this.getSelectionRange(selectedBuckets);
search.setTimeRange(range);
context.set("search", search);
return context;
 

See Also

getEventAvailableCount()
getEventCount()
setSelectedEventCount()
Splunk.Context
Splunk.Job.getEventAvailableCount()