kibana/x-pack/plugins/apm/server/feature.ts

73 lines
1.6 KiB
TypeScript
Raw Normal View History

/*
* 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',
}),
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',
],
catalogue: ['apm'],
savedObject: {
all: ['alert', 'action', 'action_task_params'],
2020-05-22 09:08:58 +02:00
read: [],
},
ui: [
'show',
'save',
'alerting:show',
'actions:show',
'alerting:save',
'actions:save',
'alerting:delete',
2020-05-22 09:08:58 +02:00
'actions:delete',
],
},
read: {
app: ['apm', 'kibana'],
api: [
'apm',
'actions-read',
'actions-all',
'alerting-read',
2020-05-22 09:08:58 +02:00
'alerting-all',
],
catalogue: ['apm'],
savedObject: {
all: ['alert', 'action', 'action_task_params'],
2020-05-22 09:08:58 +02:00
read: [],
},
ui: [
'show',
'alerting:show',
'actions:show',
'alerting:save',
'actions:save',
'alerting:delete',
2020-05-22 09:08:58 +02:00
'actions:delete',
],
},
},
};