From 598adef415899656cdace9b45729f84c125a6a60 Mon Sep 17 00:00:00 2001 From: Abdul Wahab Zahid Date: Wed, 11 Oct 2023 17:56:10 +0200 Subject: [PATCH] [Synthetics] Fix doc links for alerts and documentation (#168486) Fixes #167688 ## Summary Updates the links to Synthetics from Uptime on the following: 1. "learn more" link on Monitor Status alert flyout 2. "learn more" link on TLS alert flyout 3. Synthetics app "Documentation" link (under _help_ top header button) --- packages/kbn-doc-links/src/get_doc_links.ts | 1 + packages/kbn-doc-links/src/types.ts | 1 + .../public/apps/synthetics/lib/alert_types/monitor_status.tsx | 2 +- .../synthetics/public/apps/synthetics/lib/alert_types/tls.tsx | 2 +- .../plugins/synthetics/public/apps/synthetics/render_app.tsx | 4 ++-- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/kbn-doc-links/src/get_doc_links.ts b/packages/kbn-doc-links/src/get_doc_links.ts index a0670dc657056..20aaad5905ba3 100644 --- a/packages/kbn-doc-links/src/get_doc_links.ts +++ b/packages/kbn-doc-links/src/get_doc_links.ts @@ -543,6 +543,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => { monitorUptimeSynthetics: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/monitor-uptime-synthetics.html`, userExperience: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/user-experience.html`, createAlerts: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/create-alerts.html`, + syntheticsAlerting: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-settings.html#synthetics-settings-alerting`, syntheticsCommandReference: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-configuration.html#synthetics-configuration-playwright-options`, syntheticsProjectMonitors: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetic-run-tests.html#synthetic-monitor-choose-project`, syntheticsMigrateFromIntegration: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-migrate-from-integration.html`, diff --git a/packages/kbn-doc-links/src/types.ts b/packages/kbn-doc-links/src/types.ts index 7a61d9f3dd30e..5f513392588a6 100644 --- a/packages/kbn-doc-links/src/types.ts +++ b/packages/kbn-doc-links/src/types.ts @@ -415,6 +415,7 @@ export interface DocLinks { monitorUptimeSynthetics: string; userExperience: string; createAlerts: string; + syntheticsAlerting: string; syntheticsCommandReference: string; syntheticsProjectMonitors: string; syntheticsMigrateFromIntegration: string; diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx index 4e129559b02a6..df0f160aee3c0 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/monitor_status.tsx @@ -30,7 +30,7 @@ export const initMonitorStatusAlertType: AlertTypeInitializer = ({ description, iconClass: 'uptimeApp', documentationUrl(docLinks) { - return `${docLinks.links.observability.monitorStatus}`; + return `${docLinks.links.observability.syntheticsAlerting}`; }, ruleParamsExpression: (paramProps: RuleTypeParamsExpressionProps) => ( diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/tls.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/tls.tsx index 978fc7331b0fc..2479d1f466f3e 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/tls.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/lib/alert_types/tls.tsx @@ -27,7 +27,7 @@ export const initTlsAlertType: AlertTypeInitializer = ({ id: SYNTHETICS_ALERT_RULE_TYPES.TLS, iconClass: 'uptimeApp', documentationUrl(docLinks) { - return `${docLinks.links.observability.tlsCertificate}`; + return `${docLinks.links.observability.syntheticsAlerting}`; }, ruleParamsExpression: (params: RuleTypeParamsExpressionProps) => (