From d348de2cdc2fec9bc70bd85b205d2836e98e19c6 Mon Sep 17 00:00:00 2001 From: Yara Tercero Date: Tue, 18 May 2021 12:07:23 -0700 Subject: [PATCH] updated apm kibana features structure --- x-pack/plugins/apm/server/feature.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/x-pack/plugins/apm/server/feature.ts b/x-pack/plugins/apm/server/feature.ts index fb0610dffb92e4..8a14924c8aafaf 100644 --- a/x-pack/plugins/apm/server/feature.ts +++ b/x-pack/plugins/apm/server/feature.ts @@ -72,6 +72,33 @@ export const APM_FEATURE = { ui: ['show', 'alerting:show', 'alerting:save'], }, }, + subFeatures: [ + { + name: 'Manage Alerts', + privilegeGroups: [ + { + groupType: 'independent', + privileges: [ + { + id: 'alert_manage', + name: 'Manage Alerts', + includeIn: 'all', + alerting: { + alert: { + all: Object.values(AlertType), + }, + }, + savedObject: { + all: [], + read: [], + }, + ui: [], + }, + ], + }, + ], + }, + ], }; interface Feature {