Skip to content

Commit

Permalink
addressing PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Feb 28, 2022
1 parent 4a15d88 commit 16af2ea
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions x-pack/plugins/apm/server/saved_objects/apm_indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { SavedObjectsType } from 'src/core/server';
import { i18n } from '@kbn/i18n';
import { updateApmOssIndexPaths } from './migrations/update_apm_oss_index_paths';
import { ApmIndicesConfigName } from '..';

export interface APMIndices {
apmIndices?: {
Expand All @@ -22,32 +21,14 @@ export interface APMIndices {
isSpaceAware?: boolean;
}

const properties: {
apmIndices: {
properties: {
[Property in ApmIndicesConfigName]: { type: 'keyword' };
};
};
isSpaceAware: { type: 'boolean' };
} = {
apmIndices: {
properties: {
sourcemap: { type: 'keyword' },
error: { type: 'keyword' },
onboarding: { type: 'keyword' },
span: { type: 'keyword' },
transaction: { type: 'keyword' },
metric: { type: 'keyword' },
},
},
isSpaceAware: { type: 'boolean' },
};

export const apmIndices: SavedObjectsType = {
name: 'apm-indices',
hidden: false,
namespaceType: 'single',
mappings: { properties },
mappings: {
dynamic: false,
properties: {}, // several fields exist, but we don't need to search or aggregate on them, so we exclude them from the mappings
},
management: {
importableAndExportable: true,
icon: 'apmApp',
Expand Down

0 comments on commit 16af2ea

Please sign in to comment.