UNPKG

@spalger/kibana

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

18 lines (15 loc) 498 B
define(function (require) { return function DocLooperService(Private) { var fetch = Private(require('ui/courier/fetch/fetch')); var Looper = Private(require('ui/courier/looper/_looper')); var docStrategy = Private(require('ui/courier/fetch/strategy/doc')); /** * The Looper which will manage the doc fetch interval * @type {Looper} */ var docLooper = new Looper(1500, function () { fetch.fetchQueued(docStrategy); }); return docLooper; }; });