2020-04-30 22:08:50 +02:00
|
|
|
/*
|
|
|
|
* 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 { i18n } from '@kbn/i18n';
|
|
|
|
|
|
|
|
export const APM_FEATURE = {
|
|
|
|
id: 'apm',
|
|
|
|
name: i18n.translate('xpack.apm.featureRegistry.apmFeatureName', {
|
2020-05-22 09:08:58 +02:00
|
|
|
defaultMessage: 'APM',
|
2020-04-30 22:08:50 +02:00
|
|
|
}),
|
|
|
|
order: 900,
|
|
|
|
icon: 'apmApp',
|
|
|
|
navLinkId: 'apm',
|
|
|
|
app: ['apm', 'kibana'],
|
|
|
|
catalogue: ['apm'],
|
|
|
|
// see x-pack/plugins/features/common/feature_kibana_privileges.ts
|
|
|
|
privileges: {
|
|
|
|
all: {
|
|
|
|
app: ['apm', 'kibana'],
|
|
|
|
api: [
|
|
|
|
'apm',
|
|
|
|
'apm_write',
|
|
|
|
'actions-read',
|
|
|
|
'actions-all',
|
|
|
|
'alerting-read',
|
2020-05-22 09:08:58 +02:00
|
|
|
'alerting-all',
|
2020-04-30 22:08:50 +02:00
|
|
|
],
|
|
|
|
catalogue: ['apm'],
|
|
|
|
savedObject: {
|
|
|
|
all: ['alert', 'action', 'action_task_params'],
|
2020-05-22 09:08:58 +02:00
|
|
|
read: [],
|
2020-04-30 22:08:50 +02:00
|
|
|
},
|
|
|
|
ui: [
|
|
|
|
'show',
|
|
|
|
'save',
|
|
|
|
'alerting:show',
|
|
|
|
'actions:show',
|
|
|
|
'alerting:save',
|
|
|
|
'actions:save',
|
|
|
|
'alerting:delete',
|
2020-05-22 09:08:58 +02:00
|
|
|
'actions:delete',
|
|
|
|
],
|
2020-04-30 22:08:50 +02:00
|
|
|
},
|
|
|
|
read: {
|
|
|
|
app: ['apm', 'kibana'],
|
|
|
|
api: [
|
|
|
|
'apm',
|
|
|
|
'actions-read',
|
|
|
|
'actions-all',
|
|
|
|
'alerting-read',
|
2020-05-22 09:08:58 +02:00
|
|
|
'alerting-all',
|
2020-04-30 22:08:50 +02:00
|
|
|
],
|
|
|
|
catalogue: ['apm'],
|
|
|
|
savedObject: {
|
|
|
|
all: ['alert', 'action', 'action_task_params'],
|
2020-05-22 09:08:58 +02:00
|
|
|
read: [],
|
2020-04-30 22:08:50 +02:00
|
|
|
},
|
|
|
|
ui: [
|
|
|
|
'show',
|
|
|
|
'alerting:show',
|
|
|
|
'actions:show',
|
|
|
|
'alerting:save',
|
|
|
|
'actions:save',
|
|
|
|
'alerting:delete',
|
2020-05-22 09:08:58 +02:00
|
|
|
'actions:delete',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-04-30 22:08:50 +02:00
|
|
|
};
|