kibana-123
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
25 lines (20 loc) • 605 B
JavaScript
var _ = require('lodash');
var buildTarget = require('../../lib/build_target.js');
module.exports = function (setup) {
var targetSeries;
var tlConfig = {
getTargetSeries: function () {
return _.map(targetSeries, function (bucket) { // eslint-disable-line no-use-before-define
return [bucket, null];
});
},
setTargetSeries: function () {
targetSeries = buildTarget(this);
},
writeTargetSeries: function (series) {
targetSeries = _.map(series, function (p) {return p[0];});
}
};
tlConfig = _.extend(tlConfig, setup);
return tlConfig;
};