Skip to content

Commit

Permalink
Fix the custom threshold document link (elastic#171125)
Browse files Browse the repository at this point in the history
## Summary

Fix the custom threshold document link.

<img
src="https://github.com/elastic/kibana/assets/12370520/bcbfddb6-3526-4682-b93f-936996d2636b"
width=500 />
  • Loading branch information
maryam-saeidi authored Nov 14, 2023
1 parent db91600 commit ad79926
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-doc-links/src/get_doc_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-doc-links/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export interface DocLinks {
infrastructureThreshold: string;
logsThreshold: string;
metricsThreshold: string;
threshold: string;
customThreshold: string;
monitorStatus: string;
monitorUptime: string;
tlsCertificate: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ad79926

Please sign in to comment.