UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

208 lines (205 loc) 7.65 kB
define(function (require) { var moment = require('moment-timezone'); var _ = require('lodash'); return function configDefaultsProvider() { // wraped in provider so that a new instance is given to each app/test return { 'buildNum': { readonly: true }, '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:tz': { value: 'Browser', description: 'Which timezone should be used. "Browser" will use the timezone detected by your browser.', type: 'select', options: _.union(['Browser'], moment.tz.names()) }, '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' + ' <a href="http://en.wikipedia.org/wiki/ISO_8601#Time_intervals" target="_blank">' + 'ISO8601 intervals.</a>' }, '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', }, 'doc_table:highlight': { value: true, description: 'Highlight results in Discover and Saved Searches Dashboard.' + 'Highlighing makes request slow when working on big documents.', }, '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', }, '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. ' + '<a href="http://www.elastic.co/guide/en/elasticsearch/reference/current/' + 'search-aggregations-bucket-geohashgrid-aggregation.html#_cell_dimensions_at_the_equator" target="_blank">' + 'Explanation of cell dimensions</a>', }, 'visualization:tileMap:WMSdefaults': { value: JSON.stringify({ enabled: false, url: 'https://basemap.nationalmap.gov/arcgis/services/USGSTopo/MapServer/WMSServer', options: { version: '1.3.0', layers: '0', format: 'image/png', transparent: true, attribution: 'Maps provided by USGS', styles: '', } }, null, ' '), type: 'json', description: 'Default properties for the WMS map server support in the tile map' }, 'visualization:colorMapping': { type: 'json', value: JSON.stringify({ 'Count': '#57c17b' }), description: 'Maps values to specified colors within visualizations' }, 'visualization:loadingDelay': { value: '2s', description: 'Time to wait before dimming visualizations during query' }, '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]', description: 'Default numeral format for the "number" format' }, 'format:bytes:defaultPattern': { type: 'string', value: '0,0.[000]b', description: 'Default numeral format for the "bytes" format' }, 'format:percent:defaultPattern': { type: 'string', value: '0,0.[000]%', description: 'Default numeral format for the "percent" format' }, 'format:currency:defaultPattern': { type: 'string', value: '($0,0.[00])', description: 'Default numeral format for the "currency" format' }, 'timepicker:timeDefaults': { type: 'json', value: [ '{', ' "from": "now-15m",', ' "to": "now",', ' "mode": "quick"', '}' ].join('\n'), description: 'The timefilter selection to use when Kibana is started without one' }, 'timepicker:refreshIntervalDefaults': { type: 'json', value: [ '{', ' "display": "Off",', ' "pause": false,', ' "value": 0', '}' ].join('\n'), description: 'The timefilter\'s default refresh interval' }, 'dashboard:defaultDarkTheme': { value: false, description: 'New dashboards use dark theme by default', } }; }; });