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

143 lines (141 loc) 5.3 kB
define(function () { return function configDefaultsProvider() { // wraped in provider so that a new instance is given to each app/test return { 'query:queryString:options': { value: '{ "analyze_wildcard": true }', description: 'Options for the lucene query string parser', type: 'json' }, 'sort:options': { value: '{ "unmapped_type": "boolean" }', description: 'Options the Elasticsearch sort parameter', type: 'json' }, 'dateFormat': { value: 'MMMM Do YYYY, HH:mm:ss.SSS', description: 'When displaying a pretty formatted date, use this format', }, 'dateFormat:scaled': { type: 'json', value: '[\n' + ' ["", "hh:mm:ss.SSS"],\n' + ' ["PT1S", "HH:mm:ss"],\n' + ' ["PT1M", "HH:mm"],\n' + ' ["PT1H",\n' + ' "YYYY-MM-DD HH:mm"],\n' + ' ["P1DT", "YYYY-MM-DD"],\n' + ' ["P1YT", "YYYY"]\n' + ']', description: 'Values that define the format used in situations where timebased' + ' data is rendered in order, and formatted timestamps should adapt to the' + ' interval between measurements. Keys are ISO 8601 intervals:' + ' http://en.wikipedia.org/wiki/ISO_8601#Time_intervals' }, 'defaultIndex': { value: null, description: 'The index to access if no index is set', }, 'metaFields': { value: ['_source', '_id', '_type', '_index', '_score'], description: 'Fields that exist outside of _source to merge into our document when displaying it', }, 'discover:sampleSize': { value: 500, description: 'The number of rows to show in the table', }, 'courier:maxSegmentCount': { value: 30, description: 'Requests in discover are split into segments to prevent massive requests from being sent to ' + 'elasticsearch. This setting attempts to prevent the list of segments from getting too long, which might ' + 'cause requests to take much longer to process.' }, 'fields:popularLimit': { value: 10, description: 'The top N most popular fields to show', }, 'format:numberPrecision': { value: 3, description: 'Round numbers to this many decimal places', }, 'histogram:barTarget': { value: 50, description: 'Attempt to generate around this many bar when using "auto" interval in date histograms', }, 'histogram:maxBars': { value: 100, description: 'Never show more than this many bar in date histograms, scale values if needed', }, 'visualization:tileMap:maxPrecision': { value: 7, description: 'The maximum geoHash precision displayed on tile maps: 7 is high, 10 is very high, ' + '12 is the max. Explanation of cell dimensions: http://www.elastic.co/guide/en/elasticsearch/reference/current/' + 'search-aggregations-bucket-geohashgrid-aggregation.html#_cell_dimensions_at_the_equator', }, 'csv:separator': { value: ',', description: 'Separate exported values with this string', }, 'csv:quoteValues': { value: true, description: 'Should values be quoted in csv exports?', }, 'history:limit': { value: 10, description: 'In fields that have history (e.g. query inputs), show this many recent values', }, 'shortDots:enable': { value: false, description: 'Shorten long fields, for example, instead of foo.bar.baz, show f.b.baz', }, 'truncate:maxHeight': { value: 115, description: 'The maximum height that a cell in a table should occupy. Set to 0 to disable truncation.' }, 'indexPattern:fieldMapping:lookBack': { value: 5, description: 'For index patterns containing timestamps in their names, look for this many recent matching ' + 'patterns from which to query the field mapping.' }, 'format:defaultTypeMap': { type: 'json', value: [ '{', ' "ip": { "id": "ip", "params": {} },', ' "date": { "id": "date", "params": {} },', ' "number": { "id": "number", "params": {} },', ' "_source": { "id": "_source", "params": {} },', ' "_default_": { "id": "string", "params": {} }', '}', ].join('\n'), description: 'Map of the format name to use by default for each field type. ' + '"_default_" is used if the field type is not mentioned explicitly.' }, 'format:number:defaultPattern': { type: 'string', value: '0,0.[000]' }, 'format:bytes:defaultPattern': { type: 'string', value: '0,0.[000]b' }, 'format:percent:defaultPattern': { type: 'string', value: '0,0.[000]%' }, 'format:currency:defaultPattern': { type: 'string', value: '($0,0.[00])' }, 'timepicker:timeDefaults': { type: 'json', value: JSON.stringify({ from: 'now-15m', to: 'now', mode: 'quick' }, null, 2) } }; }; });