Skip to content

Commit

Permalink
make uptime settings saved object exportable
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Oct 7, 2021
1 parent 3135075 commit c3742a5
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 c3742a5

Please sign in to comment.