Application Framework Reference

Splunk API

getEventAvailableCount()

The getEventAvailableCount() method gets the current count of available events within the context current search job, the event count is accurate even if a module such as FlashTimeline has narrowed the time range selected.

Synopsis

count = getEventAvailableCount()

Return Value

Integer

The number of events available within the context search job.

Example

var context = this.getContext();var search  = context.get("search");
var count = search.getEventAvailableCount();
alert('count = ' + escape(toString(count)));
 

See Also

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