-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add maps telemetry saved object in with index: false on all fields. C…
…hange dynamic fields to type: object
- Loading branch information
Aaron Caldwell
committed
Jun 25, 2020
1 parent
e044940
commit 7d5040f
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
x-pack/plugins/maps/server/saved_objects/maps_telemetry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import { SavedObjectsType } from 'src/core/server'; | ||
|
||
export const mapsTelemetrySavedObjects: SavedObjectsType = { | ||
name: 'maps-telemetry', | ||
hidden: false, | ||
namespaceType: 'agnostic', | ||
mappings: { | ||
properties: { | ||
settings: { | ||
properties: { | ||
showMapVisualizationTypes: { type: 'boolean', index: false }, | ||
}, | ||
}, | ||
indexPatternsWithGeoFieldCount: { type: 'long', index: false }, | ||
indexPatternsWithGeoPointFieldCount: { type: 'long', index: false }, | ||
indexPatternsWithGeoShapeFieldCount: { type: 'long', index: false }, | ||
mapsTotalCount: { type: 'long', index: false }, | ||
timeCaptured: { type: 'date', index: false }, | ||
attributesPerMap: { | ||
properties: { | ||
dataSourcesCount: { | ||
properties: { | ||
min: { type: 'long', index: false }, | ||
max: { type: 'long', index: false }, | ||
avg: { type: 'long', index: false }, | ||
}, | ||
}, | ||
layersCount: { | ||
properties: { | ||
min: { type: 'long', index: false }, | ||
max: { type: 'long', index: false }, | ||
avg: { type: 'long', index: false }, | ||
}, | ||
}, | ||
layerTypesCount: { type: 'object', index: false }, | ||
emsVectorLayersCount: { type: 'object', index: false }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |