Skip to content

Commit

Permalink
[Uptime] Make uptime settings saved object exportable (elastic#114235) (
Browse files Browse the repository at this point in the history
elastic#114614)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Shahzad <[email protected]>
  • Loading branch information
kibanamachine and shahzad31 authored Oct 12, 2021
1 parent 0f15cce commit 937ea35
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions x-pack/plugins/uptime/server/lib/saved_objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2.0.
*/

import { i18n } from '@kbn/i18n';
import { DYNAMIC_SETTINGS_DEFAULTS } from '../../common/constants';
import { DynamicSettings } from '../../common/runtime_types';
import { SavedObjectsType, SavedObjectsErrorHelpers } from '../../../../../src/core/server';
Expand Down Expand Up @@ -43,6 +44,14 @@ export const umDynamicSettings: SavedObjectsType = {
*/
},
},
management: {
importableAndExportable: true,
icon: 'uptimeApp',
getTitle: () =>
i18n.translate('xpack.uptime.uptimeSettings.index', {
defaultMessage: 'Uptime Settings - Index',
}),
},
};

export const savedObjectsAdapter: UMSavedObjectsAdapter = {
Expand Down

0 comments on commit 937ea35

Please sign in to comment.