[APM] Make service group saved objects exportable (#163569)

- Makes the saved objects used by service groups exportable / importable
- Adds a link from the saved object to the service group page
- Renames the saved objects from `APM Service Groups` to `Service Group:
This commit is contained in:
Giorgos Bamparopoulos 2023-08-11 09:27:21 +01:00 committed by GitHub
parent 33ace32c3d
commit 290bf1d978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,12 +52,16 @@ export const apmServiceGroups: SavedObjectsType = {
},
},
management: {
importableAndExportable: false,
importableAndExportable: true,
icon: 'apmApp',
getTitle: () =>
i18n.translate('xpack.apm.apmServiceGroups.title', {
defaultMessage: 'APM Service Groups',
}),
getTitle: (savedObject) =>
`${i18n.translate('xpack.apm.apmServiceGroups.title', {
defaultMessage: 'Service Group',
})}: ${savedObject.attributes.groupName}`,
getInAppUrl: (savedObject) => ({
path: `/app/apm/services?serviceGroup=${savedObject.id}`,
uiCapabilitiesPath: 'apm.show',
}),
},
modelVersions: {
'1': {