[8.11] Fix the custom threshold document link (#171125) (#171214)

# Backport

This will backport the following commits from `main` to `8.11`:
- [Fix the custom threshold document link
(#171125)](https://github.com/elastic/kibana/pull/171125)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2023-11-14T15:26:47Z","message":"Fix
the custom threshold document link (#171125)\n\n## Summary\r\n\r\nFix
the custom threshold document
link.\r\n\r\n<img\r\nsrc=\"bcbfddb6-3526-4682-b93f-936996d2636b\"\r\nwidth=500
/>","sha":"ad79926b778f0a8889d708e145d733a8efcf1d33","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","v8.12.0"],"number":171125,"url":"https://github.com/elastic/kibana/pull/171125","mergeCommit":{"message":"Fix
the custom threshold document link (#171125)\n\n## Summary\r\n\r\nFix
the custom threshold document
link.\r\n\r\n<img\r\nsrc=\"bcbfddb6-3526-4682-b93f-936996d2636b\"\r\nwidth=500
/>","sha":"ad79926b778f0a8889d708e145d733a8efcf1d33"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171125","number":171125,"mergeCommit":{"message":"Fix
the custom threshold document link (#171125)\n\n## Summary\r\n\r\nFix
the custom threshold document
link.\r\n\r\n<img\r\nsrc=\"bcbfddb6-3526-4682-b93f-936996d2636b\"\r\nwidth=500
/>","sha":"ad79926b778f0a8889d708e145d733a8efcf1d33"}}]}] BACKPORT-->

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
This commit is contained in:
Kibana Machine 2023-11-14 11:42:44 -05:00 committed by GitHub
parent 638c7ad96a
commit 005e1899fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -536,7 +536,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
infrastructureThreshold: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/infrastructure-threshold-alert.html`,
logsThreshold: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/logs-threshold-alert.html`,
metricsThreshold: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/metrics-threshold-alert.html`,
threshold: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/threshold-alert.html`,
customThreshold: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/custom-threshold-alert.html`,
monitorStatus: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/monitor-status-alert.html`,
monitorUptime: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/monitor-uptime.html`,
tlsCertificate: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/tls-certificate-alert.html`,

View file

@ -408,7 +408,7 @@ export interface DocLinks {
infrastructureThreshold: string;
logsThreshold: string;
metricsThreshold: string;
threshold: string;
customThreshold: string;
monitorStatus: string;
monitorUptime: string;
tlsCertificate: string;

View file

@ -112,7 +112,7 @@ export const registerObservabilityRuleTypes = (
),
iconClass: 'bell',
documentationUrl(docLinks) {
return `${docLinks.links.observability.threshold}`;
return `${docLinks.links.observability.customThreshold}`;
},
ruleParamsExpression: lazy(
() => import('../components/custom_threshold/custom_threshold_rule_expression')