Skip to content

Commit

Permalink
Setting displayname for alerting sos (#114916)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 authored Oct 14, 2021
1 parent 3899046 commit 0b2012a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/actions/server/saved_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function setupSavedObjects(
mappings: mappings.action as SavedObjectsTypeMappingDefinition,
migrations: getActionsMigrations(encryptedSavedObjects),
management: {
displayName: 'connector',
defaultSearchField: 'name',
importableAndExportable: true,
getTitle(savedObject: SavedObject<RawAction>) {
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/alerting/server/saved_objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function setupSavedObjects(
migrations: getMigrations(encryptedSavedObjects, isPreconfigured),
mappings: mappings.alert as SavedObjectsTypeMappingDefinition,
management: {
displayName: 'rule',
importableAndExportable: true,
getTitle(ruleSavedObject: SavedObject<RawAlert>) {
return `Rule: [${ruleSavedObject.attributes.name}]`;
Expand Down

0 comments on commit 0b2012a

Please sign in to comment.