UNPKG

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

22 lines (19 loc) 527 B
import FixturesLogstashFieldsProvider from 'fixtures/logstash_fields'; function stubbedDocSourceResponse(Private) { let mockLogstashFields = Private(FixturesLogstashFieldsProvider); 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) } }; }; } export default stubbedDocSourceResponse;