|
| 1 | +/* |
| 2 | + * Licensed to Elasticsearch B.V. under one or more contributor |
| 3 | + * license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright |
| 5 | + * ownership. Elasticsearch B.V. licenses this file to you under |
| 6 | + * the Apache License, Version 2.0 (the "License"); you may |
| 7 | + * not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | + |
| 20 | +import { MakeSchemaFrom } from 'src/plugins/usage_collection/server'; |
| 21 | +import { UsageStats } from './telemetry_management_collector'; |
| 22 | + |
| 23 | +// Retrieved by changing all the current settings in Kibana (we'll need to revisit it in the future). |
| 24 | +// I would suggest we use flattened type for the mappings of this collector. |
| 25 | +export const stackManagementSchema: MakeSchemaFrom<UsageStats> = { |
| 26 | + 'visualize:enableLabs': { type: 'boolean' }, |
| 27 | + 'visualization:heatmap:maxBuckets': { type: 'long' }, |
| 28 | + 'visualization:colorMapping': { type: 'text' }, |
| 29 | + 'visualization:regionmap:showWarnings': { type: 'boolean' }, |
| 30 | + 'visualization:dimmingOpacity': { type: 'float' }, |
| 31 | + 'visualization:tileMap:maxPrecision': { type: 'long' }, |
| 32 | + 'securitySolution:ipReputationLinks': { type: 'text' }, |
| 33 | + 'csv:separator': { type: 'keyword' }, |
| 34 | + 'visualization:tileMap:WMSdefaults': { type: 'text' }, |
| 35 | + 'timelion:target_buckets': { type: 'long' }, |
| 36 | + 'timelion:max_buckets': { type: 'long' }, |
| 37 | + 'timelion:es.timefield': { type: 'keyword' }, |
| 38 | + 'timelion:min_interval': { type: 'keyword' }, |
| 39 | + 'timelion:default_rows': { type: 'long' }, |
| 40 | + 'timelion:default_columns': { type: 'long' }, |
| 41 | + 'timelion:quandl.key': { type: 'keyword' }, |
| 42 | + 'timelion:es.default_index': { type: 'keyword' }, |
| 43 | + 'timelion:showTutorial': { type: 'boolean' }, |
| 44 | + 'securitySolution:timeDefaults': { type: 'keyword' }, |
| 45 | + 'securitySolution:defaultAnomalyScore': { type: 'long' }, |
| 46 | + 'securitySolution:defaultIndex': { type: 'keyword' }, // it's an array |
| 47 | + 'securitySolution:refreshIntervalDefaults': { type: 'keyword' }, |
| 48 | + 'securitySolution:newsFeedUrl': { type: 'keyword' }, |
| 49 | + 'securitySolution:enableNewsFeed': { type: 'boolean' }, |
| 50 | + 'search:includeFrozen': { type: 'boolean' }, |
| 51 | + 'courier:maxConcurrentShardRequests': { type: 'long' }, |
| 52 | + 'courier:batchSearches': { type: 'boolean' }, |
| 53 | + 'courier:setRequestPreference': { type: 'keyword' }, |
| 54 | + 'courier:customRequestPreference': { type: 'keyword' }, |
| 55 | + 'courier:ignoreFilterIfFieldNotInIndex': { type: 'boolean' }, |
| 56 | + 'rollups:enableIndexPatterns': { type: 'boolean' }, |
| 57 | + 'xpackReporting:customPdfLogo': { type: 'text' }, |
| 58 | + 'notifications:lifetime:warning': { type: 'long' }, |
| 59 | + 'notifications:lifetime:banner': { type: 'long' }, |
| 60 | + 'notifications:lifetime:info': { type: 'long' }, |
| 61 | + 'notifications:banner': { type: 'text' }, |
| 62 | + 'notifications:lifetime:error': { type: 'long' }, |
| 63 | + 'doc_table:highlight': { type: 'boolean' }, |
| 64 | + 'discover:searchOnPageLoad': { type: 'boolean' }, |
| 65 | + // eslint-disable-next-line @typescript-eslint/naming-convention |
| 66 | + 'doc_table:hideTimeColumn': { type: 'boolean' }, |
| 67 | + 'discover:sampleSize': { type: 'long' }, |
| 68 | + defaultColumns: { type: 'keyword' }, // it's an array |
| 69 | + 'context:defaultSize': { type: 'long' }, |
| 70 | + 'discover:aggs:terms:size': { type: 'long' }, |
| 71 | + 'context:tieBreakerFields': { type: 'keyword' }, // it's an array |
| 72 | + 'discover:sort:defaultOrder': { type: 'keyword' }, |
| 73 | + 'context:step': { type: 'long' }, |
| 74 | + 'accessibility:disableAnimations': { type: 'boolean' }, |
| 75 | + 'ml:fileDataVisualizerMaxFileSize': { type: 'keyword' }, |
| 76 | + 'ml:anomalyDetection:results:enableTimeDefaults': { type: 'boolean' }, |
| 77 | + 'ml:anomalyDetection:results:timeDefaults': { type: 'keyword' }, |
| 78 | + 'truncate:maxHeight': { type: 'long' }, |
| 79 | + 'timepicker:timeDefaults': { type: 'keyword' }, |
| 80 | + 'timepicker:refreshIntervalDefaults': { type: 'keyword' }, |
| 81 | + 'timepicker:quickRanges': { type: 'keyword' }, |
| 82 | + 'theme:version': { type: 'keyword' }, |
| 83 | + 'theme:darkMode': { type: 'boolean' }, |
| 84 | + 'state:storeInSessionStorage': { type: 'boolean' }, |
| 85 | + 'savedObjects:perPage': { type: 'long' }, |
| 86 | + 'search:queryLanguage': { type: 'keyword' }, |
| 87 | + 'shortDots:enable': { type: 'boolean' }, |
| 88 | + 'sort:options': { type: 'keyword' }, |
| 89 | + 'savedObjects:listingLimit': { type: 'long' }, |
| 90 | + 'query:queryString:options': { type: 'keyword' }, |
| 91 | + pageNavigation: { type: 'keyword' }, |
| 92 | + 'metrics:max_buckets': { type: 'long' }, |
| 93 | + 'query:allowLeadingWildcards': { type: 'boolean' }, |
| 94 | + metaFields: { type: 'keyword' }, // it's an array |
| 95 | + 'indexPattern:placeholder': { type: 'keyword' }, |
| 96 | + 'histogram:barTarget': { type: 'long' }, |
| 97 | + 'histogram:maxBars': { type: 'long' }, |
| 98 | + 'format:number:defaultLocale': { type: 'keyword' }, |
| 99 | + 'format:percent:defaultPattern': { type: 'keyword' }, |
| 100 | + 'format:number:defaultPattern': { type: 'keyword' }, |
| 101 | + 'history:limit': { type: 'long' }, |
| 102 | + 'format:defaultTypeMap': { type: 'keyword' }, |
| 103 | + 'format:currency:defaultPattern': { type: 'keyword' }, |
| 104 | + defaultIndex: { type: 'keyword' }, |
| 105 | + 'format:bytes:defaultPattern': { type: 'keyword' }, |
| 106 | + 'filters:pinnedByDefault': { type: 'boolean' }, |
| 107 | + 'filterEditor:suggestValues': { type: 'boolean' }, |
| 108 | + 'fields:popularLimit': { type: 'long' }, |
| 109 | + dateNanosFormat: { type: 'keyword' }, |
| 110 | + defaultRoute: { type: 'keyword' }, |
| 111 | + 'dateFormat:tz': { type: 'keyword' }, |
| 112 | + 'dateFormat:scaled': { type: 'keyword' }, |
| 113 | + 'csv:quoteValues': { type: 'boolean' }, |
| 114 | + 'dateFormat:dow': { type: 'keyword' }, |
| 115 | + dateFormat: { type: 'keyword' }, |
| 116 | +}; |
0 commit comments