Replace hard-coded link to APM rules (#109021)

This commit is contained in:
Lisa Cawley 2021-08-30 14:41:16 -07:00 committed by GitHub
parent 5b4df7916e
commit f41ab3590d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -276,6 +276,7 @@ export class DocLinksService {
alerting: {
guide: `${KIBANA_DOCS}create-and-manage-rules.html`,
actionTypes: `${KIBANA_DOCS}action-types.html`,
apmRules: `${KIBANA_DOCS}apm-alerts.html`,
emailAction: `${KIBANA_DOCS}email-action-type.html`,
emailActionConfig: `${KIBANA_DOCS}email-action-type.html`,
generalSettings: `${KIBANA_DOCS}alert-action-settings-kb.html#general-alert-action-settings`,

View file

@ -78,7 +78,7 @@ export function registerApmAlerts(
},
iconClass: 'bell',
documentationUrl(docLinks) {
return `${docLinks.ELASTIC_WEBSITE_URL}guide/en/kibana/${docLinks.DOC_LINK_VERSION}/apm-alerts.html`;
return `${docLinks.links.alerting.apmRules}`;
},
alertParamsExpression: lazy(() => import('./error_count_alert_trigger')),
validate: () => ({
@ -126,7 +126,7 @@ export function registerApmAlerts(
}),
iconClass: 'bell',
documentationUrl(docLinks) {
return `${docLinks.ELASTIC_WEBSITE_URL}guide/en/kibana/${docLinks.DOC_LINK_VERSION}/apm-alerts.html`;
return `${docLinks.links.alerting.apmRules}`;
},
alertParamsExpression: lazy(
() => import('./transaction_duration_alert_trigger')
@ -177,7 +177,7 @@ export function registerApmAlerts(
}),
iconClass: 'bell',
documentationUrl(docLinks) {
return `${docLinks.ELASTIC_WEBSITE_URL}guide/en/kibana/${docLinks.DOC_LINK_VERSION}/apm-alerts.html`;
return `${docLinks.links.alerting.apmRules}`;
},
alertParamsExpression: lazy(
() => import('./transaction_error_rate_alert_trigger')
@ -226,7 +226,7 @@ export function registerApmAlerts(
}),
iconClass: 'bell',
documentationUrl(docLinks) {
return `${docLinks.ELASTIC_WEBSITE_URL}guide/en/kibana/${docLinks.DOC_LINK_VERSION}/apm-alerts.html`;
return `${docLinks.links.alerting.apmRules}`;
},
alertParamsExpression: lazy(
() => import('./transaction_duration_anomaly_alert_trigger')