mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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 { i18n } from '@kbn/i18n';
|
||||||
import { HttpSetup, DocLinksStart } from '@kbn/core/public';
|
import { HttpSetup, DocLinksStart } from '@kbn/core/public';
|
||||||
import { ObservabilityFetchDataPlugins } from '../../../typings/fetch_overview_data';
|
import { ObservabilityFetchDataPlugins } from '../../../typings/fetch_overview_data';
|
||||||
|
import { paths } from '../../../config/paths';
|
||||||
|
|
||||||
export interface ObservabilityStatusContent {
|
export interface ObservabilityStatusContent {
|
||||||
id: ObservabilityFetchDataPlugins | 'alert';
|
id: ObservabilityFetchDataPlugins | 'alert';
|
||||||
|
@ -135,7 +136,7 @@ export const getContent = (
|
||||||
addTitle: i18n.translate('xpack.observability.statusVisualization.alert.link', {
|
addTitle: i18n.translate('xpack.observability.statusVisualization.alert.link', {
|
||||||
defaultMessage: 'Create rules',
|
defaultMessage: 'Create rules',
|
||||||
}),
|
}),
|
||||||
addLink: http.basePath.prepend('/app/management/insightsAndAlerting/triggersActions/rules'),
|
addLink: http.basePath.prepend(paths.observability.rules),
|
||||||
learnMoreLink: docLinks.links.observability.createAlerts,
|
learnMoreLink: docLinks.links.observability.createAlerts,
|
||||||
goToAppTitle: i18n.translate('xpack.observability.statusVisualization.alert.goToAppTitle', {
|
goToAppTitle: i18n.translate('xpack.observability.statusVisualization.alert.goToAppTitle', {
|
||||||
defaultMessage: 'Show alerts',
|
defaultMessage: 'Show alerts',
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { HttpSetup } from '@kbn/core/public';
|
import { HttpSetup } from '@kbn/core/public';
|
||||||
import { ISection } from '../../typings/section';
|
import { ISection } from '../../typings/section';
|
||||||
|
import { paths } from '../../config/paths';
|
||||||
|
|
||||||
export const getEmptySections = ({ http }: { http: HttpSetup }): ISection[] => {
|
export const getEmptySections = ({ http }: { http: HttpSetup }): ISection[] => {
|
||||||
return [
|
return [
|
||||||
|
@ -97,7 +98,7 @@ export const getEmptySections = ({ http }: { http: HttpSetup }): ISection[] => {
|
||||||
linkTitle: i18n.translate('xpack.observability.emptySection.apps.alert.link', {
|
linkTitle: i18n.translate('xpack.observability.emptySection.apps.alert.link', {
|
||||||
defaultMessage: 'Create rule',
|
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