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

22 lines (20 loc) 520 B
define(function (require) { function stubbedDocSourceResponse(Private) { var mockLogstashFields = Private(require('fixtures/logstash_fields')); return function (id, index) { index = index || '.kibana'; return { _id: id, _index: index, _type: 'index-pattern', _version: 2, found: true, _source: { customFormats: '{}', fields: JSON.stringify(mockLogstashFields) } }; }; } return stubbedDocSourceResponse; });