mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Actionable Observability] Update links to Observability rule management (#140009)
* [Actionable Observability] Update links to Observability rule management * Use path config file for links
This commit is contained in:
parent
4d15bb1d34
commit
6559bfbc71
2 changed files with 4 additions and 2 deletions
|
@ -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';
|
||||
|
@ -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',
|
||||
|
|
|
@ -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 [
|
||||
|
@ -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),
|
||||
},
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue