Skip to content

Commit

Permalink
Setting displayname for alerting sos (elastic#114916)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 authored and kibanamachine committed Oct 14, 2021
1 parent df8c41a commit fb98685
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 @@ -39,6 +39,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 @@ -57,6 +57,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 fb98685

Please sign in to comment.