Skip to content

Commit

Permalink
[Actionable Observability] Update links to Observability rule managem…
Browse files Browse the repository at this point in the history
…ent (#140009)

* [Actionable Observability] Update links to Observability rule management

* Use path config file for links
  • Loading branch information
CoenWarmer authored Sep 5, 2022
1 parent 4d15bb1 commit 6559bfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { i18n } from '@kbn/i18n';
import { HttpSetup, DocLinksStart } from '@kbn/core/public';
import { ObservabilityFetchDataPlugins } from '../../../typings/fetch_overview_data';
import { paths } from '../../../config/paths';

export interface ObservabilityStatusContent {
id: ObservabilityFetchDataPlugins | 'alert';
Expand Down Expand Up @@ -135,7 +136,7 @@ export const getContent = (
addTitle: i18n.translate('xpack.observability.statusVisualization.alert.link', {
defaultMessage: 'Create rules',
}),
addLink: http.basePath.prepend('/app/management/insightsAndAlerting/triggersActions/rules'),
addLink: http.basePath.prepend(paths.observability.rules),
learnMoreLink: docLinks.links.observability.createAlerts,
goToAppTitle: i18n.translate('xpack.observability.statusVisualization.alert.goToAppTitle', {
defaultMessage: 'Show alerts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { i18n } from '@kbn/i18n';
import { HttpSetup } from '@kbn/core/public';
import { ISection } from '../../typings/section';
import { paths } from '../../config/paths';

export const getEmptySections = ({ http }: { http: HttpSetup }): ISection[] => {
return [
Expand Down Expand Up @@ -97,7 +98,7 @@ export const getEmptySections = ({ http }: { http: HttpSetup }): ISection[] => {
linkTitle: i18n.translate('xpack.observability.emptySection.apps.alert.link', {
defaultMessage: 'Create rule',
}),
href: http.basePath.prepend('/app/management/insightsAndAlerting/triggersActions/alerts'),
href: http.basePath.prepend(paths.observability.rules),
},
];
};

0 comments on commit 6559bfb

Please sign in to comment.