mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.11`: - [[Synthetics] Fix doc links for alerts and documentation (#168486)](https://github.com/elastic/kibana/pull/168486) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Abdul Wahab Zahid","email":"awahab07@yahoo.com"},"sourceCommit":{"committedDate":"2023-10-11T15:56:10Z","message":"[Synthetics] Fix doc links for alerts and documentation (#168486)\n\nFixes #167688 \r\n\r\n## Summary\r\n\r\nUpdates the links to Synthetics from Uptime on the following:\r\n1. \"learn more\" link on Monitor Status alert flyout\r\n2. \"learn more\" link on TLS alert flyout\r\n3. Synthetics app \"Documentation\" link (under _help_ top header button)","sha":"598adef415899656cdace9b45729f84c125a6a60","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:uptime","release_note:skip","v8.11.0","v8.12.0"],"number":168486,"url":"https://github.com/elastic/kibana/pull/168486","mergeCommit":{"message":"[Synthetics] Fix doc links for alerts and documentation (#168486)\n\nFixes #167688 \r\n\r\n## Summary\r\n\r\nUpdates the links to Synthetics from Uptime on the following:\r\n1. \"learn more\" link on Monitor Status alert flyout\r\n2. \"learn more\" link on TLS alert flyout\r\n3. Synthetics app \"Documentation\" link (under _help_ top header button)","sha":"598adef415899656cdace9b45729f84c125a6a60"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168486","number":168486,"mergeCommit":{"message":"[Synthetics] Fix doc links for alerts and documentation (#168486)\n\nFixes #167688 \r\n\r\n## Summary\r\n\r\nUpdates the links to Synthetics from Uptime on the following:\r\n1. \"learn more\" link on Monitor Status alert flyout\r\n2. \"learn more\" link on TLS alert flyout\r\n3. Synthetics app \"Documentation\" link (under _help_ top header button)","sha":"598adef415899656cdace9b45729f84c125a6a60"}}]}] BACKPORT--> Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com> Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
parent
155aa59c06
commit
4459223127
5 changed files with 6 additions and 4 deletions
|
@ -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`,
|
||||
|
|
|
@ -415,6 +415,7 @@ export interface DocLinks {
|
|||
monitorUptimeSynthetics: string;
|
||||
userExperience: string;
|
||||
createAlerts: string;
|
||||
syntheticsAlerting: string;
|
||||
syntheticsCommandReference: string;
|
||||
syntheticsProjectMonitors: string;
|
||||
syntheticsMigrateFromIntegration: string;
|
||||
|
|
|
@ -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<StatusRuleParams>) => (
|
||||
<MonitorStatusAlert core={core} plugins={plugins} params={paramProps} />
|
||||
|
|
|
@ -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<TLSParams>) => (
|
||||
<TLSAlert
|
||||
|
|
|
@ -62,11 +62,11 @@ export function renderApp(
|
|||
links: [
|
||||
{
|
||||
linkType: 'documentation',
|
||||
href: `${docLinks.links.observability.monitorUptime}`, // TODO: Include synthetics link
|
||||
href: `${docLinks.links.observability.monitorUptimeSynthetics}`,
|
||||
},
|
||||
{
|
||||
linkType: 'discuss',
|
||||
href: 'https://discuss.elastic.co/c/uptime', // TODO: Include synthetics link
|
||||
href: 'https://discuss.elastic.co/c/uptime', // Redirects to https://discuss.elastic.co/c/observability/synthetics/75
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue