Skip to content

Commit 095c1ce

Browse files
authored
remove events from indexPatternTypes (#74754)
1 parent 8188729 commit 095c1ce

File tree

1 file changed

+1
-6
lines changed
  • x-pack/plugins/ingest_manager/server/services/epm/kibana/index_pattern

1 file changed

+1
-6
lines changed

x-pack/plugins/ingest_manager/server/services/epm/kibana/index_pattern/install.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export interface IndexPatternField {
7272
export enum IndexPatternType {
7373
logs = 'logs',
7474
metrics = 'metrics',
75-
events = 'events',
7675
}
7776
// TODO: use a function overload and make pkgName and pkgVersion required for install/update
7877
// and not for an update removal. or separate out the functions
@@ -111,11 +110,7 @@ export async function installIndexPatterns(
111110
const installedPackagesInfo = await Promise.all(installedPackagesFetchInfoPromise);
112111

113112
// for each index pattern type, create an index pattern
114-
const indexPatternTypes = [
115-
IndexPatternType.logs,
116-
IndexPatternType.metrics,
117-
IndexPatternType.events,
118-
];
113+
const indexPatternTypes = [IndexPatternType.logs, IndexPatternType.metrics];
119114
indexPatternTypes.forEach(async (indexPatternType) => {
120115
// if this is an update because a package is being unisntalled (no pkgkey argument passed) and no other packages are installed, remove the index pattern
121116
if (!pkgName && installedPackages.length === 0) {

0 commit comments

Comments
 (0)