Skip to content

Commit

Permalink
Replace hard-coded link to APM rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Aug 17, 2021
1 parent 5d404ff commit ee6134a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/core/public/doc_links/doc_links_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,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`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: () => ({
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit ee6134a

Please sign in to comment.