mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
chore(slo): use doclinks (#160673)
This commit is contained in:
parent
b340cb301b
commit
50e015e4ff
3 changed files with 4 additions and 1 deletions
|
@ -521,6 +521,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
|
|||
syntheticsCommandReference: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-configuration.html#synthetics-configuration-playwright-options`,
|
||||
syntheticsProjectMonitors: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetic-run-tests.html#synthetic-monitor-choose-project`,
|
||||
syntheticsMigrateFromIntegration: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/synthetics-migrate-from-integration.html`,
|
||||
sloBurnRateRule: `${ELASTIC_WEBSITE_URL}guide/en/observability/${DOC_LINK_VERSION}/slo-burn-rate-alert.html`,
|
||||
},
|
||||
alerting: {
|
||||
guide: `${KIBANA_DOCS}create-and-manage-rules.html`,
|
||||
|
|
|
@ -401,6 +401,7 @@ export interface DocLinks {
|
|||
syntheticsCommandReference: string;
|
||||
syntheticsProjectMonitors: string;
|
||||
syntheticsMigrateFromIntegration: string;
|
||||
sloBurnRateRule: string;
|
||||
}>;
|
||||
readonly alerting: Readonly<{
|
||||
guide: string;
|
||||
|
|
|
@ -70,7 +70,7 @@ export const registerObservabilityRuleTypes = (
|
|||
},
|
||||
iconClass: 'bell',
|
||||
documentationUrl(docLinks) {
|
||||
return 'https://www.elastic.co/guide/en/observability/current/slo-burn-rate-alert.html';
|
||||
return `${docLinks.links.observability.sloBurnRateRule}`;
|
||||
},
|
||||
ruleParamsExpression: lazy(() => import('../components/burn_rate_rule_editor')),
|
||||
validate: validateBurnRateRule,
|
||||
|
@ -78,6 +78,7 @@ export const registerObservabilityRuleTypes = (
|
|||
defaultActionMessage: sloBurnRateDefaultActionMessage,
|
||||
defaultRecoveryMessage: sloBurnRateDefaultRecoveryMessage,
|
||||
});
|
||||
|
||||
if (config.unsafe.thresholdRule.enabled) {
|
||||
observabilityRuleTypeRegistry.register({
|
||||
id: OBSERVABILITY_THRESHOLD_RULE_TYPE_ID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue