[AO] Add Threshold rule Doc link (#160047)

## Summary

It fixes #160045
This commit is contained in:
Faisal Kanout 2023-06-20 20:52:45 +03:00 committed by GitHub
parent 851b641c2d
commit b801dbcf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -499,6 +499,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`,
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

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

View file

@ -89,7 +89,7 @@ export const registerObservabilityRuleTypes = (
),
iconClass: 'bell',
documentationUrl(docLinks) {
return `${docLinks.links.observability.metricsThreshold}`;
return `${docLinks.links.observability.threshold}`;
},
ruleParamsExpression: lazy(() => import('../pages/threshold/components/expression')),
validate: validateMetricThreshold,