diff --git a/packages/kbn-doc-links/src/get_doc_links.ts b/packages/kbn-doc-links/src/get_doc_links.ts
index d6d7ccc3ad010..9184fab1f0657 100644
--- a/packages/kbn-doc-links/src/get_doc_links.ts
+++ b/packages/kbn-doc-links/src/get_doc_links.ts
@@ -399,6 +399,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
value_lists: `${SECURITY_SOLUTION_DOCS}value-lists-exceptions.html`,
},
privileges: `${SECURITY_SOLUTION_DOCS}endpoint-management-req.html`,
+ manageDetectionRules: `${SECURITY_SOLUTION_DOCS}rules-ui-management.html`,
},
query: {
eql: `${ELASTICSEARCH_DOCS}eql.html`,
diff --git a/packages/kbn-doc-links/src/types.ts b/packages/kbn-doc-links/src/types.ts
index 5e2e8e7bf1304..38f0829ac3516 100644
--- a/packages/kbn-doc-links/src/types.ts
+++ b/packages/kbn-doc-links/src/types.ts
@@ -302,6 +302,7 @@ export interface DocLinks {
value_lists: string;
};
readonly privileges: string;
+ readonly manageDetectionRules: string;
};
readonly query: {
readonly eql: string;
diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/rule_snooze_section.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/rule_snooze_section.tsx
index d9586f80f3e93..fb0d9e922822b 100644
--- a/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/rule_snooze_section.tsx
+++ b/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/rule_snooze_section.tsx
@@ -6,8 +6,7 @@
*/
import React from 'react';
-import { css } from '@emotion/react';
-import { EuiFlexGroup, EuiFlexItem, EuiText, useEuiTheme } from '@elastic/eui';
+import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
import type { RuleObjectId } from '../../../../../common/detection_engine/rule_schema';
import { RuleSnoozeBadge } from '../../../../detection_engine/rule_management/components/rule_snooze_badge';
import * as i18n from './translations';
@@ -17,26 +16,14 @@ interface RuleSnoozeSectionProps {
}
export function RuleSnoozeSection({ ruleId }: RuleSnoozeSectionProps): JSX.Element {
- const { euiTheme } = useEuiTheme();
-
return (
-
- {i18n.RULE_SNOOZE_DESCRIPTION}
-
-
-
-
-
-
- {i18n.SNOOZED_ACTIONS_WARNING}
-
-
-
-
+
+
+ {i18n.RULE_SNOOZE_DESCRIPTION}
+
+
+
+
+
);
}
diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/translations.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/translations.tsx
index 938d8a8a6411f..f6f5e93da7713 100644
--- a/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/translations.tsx
+++ b/x-pack/plugins/security_solution/public/detections/components/rules/step_rule_actions/translations.tsx
@@ -5,7 +5,11 @@
* 2.0.
*/
+import React from 'react';
import { i18n } from '@kbn/i18n';
+import { FormattedMessage } from '@kbn/i18n-react';
+import { EuiLink } from '@elastic/eui';
+import { useKibana } from '../../../../common/lib/kibana';
export const COMPLETE_WITHOUT_ENABLING = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepScheduleRule.completeWithoutEnablingTitle',
@@ -29,17 +33,36 @@ export const NO_ACTIONS_READ_PERMISSIONS = i18n.translate(
}
);
-export const RULE_SNOOZE_DESCRIPTION = i18n.translate(
- 'xpack.securitySolution.detectionEngine.createRule.stepRuleActions.snoozeDescription',
+const RULE_SNOOZE_DOCS_LINK_TEXT = i18n.translate(
+ 'xpack.securitySolution.detectionEngine.createRule.stepRuleActions.docsLinkText',
{
- defaultMessage:
- 'Select when automated actions should be performed if a rule evaluates as true.',
+ defaultMessage: 'Learn more',
}
);
-export const SNOOZED_ACTIONS_WARNING = i18n.translate(
- 'xpack.securitySolution.detectionEngine.createRule.stepRuleActions.snoozedActionsWarning',
- {
- defaultMessage: 'Actions will not be performed until it is unsnoozed.',
- }
-);
+function RuleSnoozeDescription(): JSX.Element {
+ const {
+ docLinks: {
+ links: {
+ securitySolution: { manageDetectionRules },
+ },
+ },
+ } = useKibana().services;
+ const manageDetectionRulesSnoozeSection = `${manageDetectionRules}#edit-rules-settings`;
+
+ return (
+
+ {RULE_SNOOZE_DOCS_LINK_TEXT}
+
+ ),
+ }}
+ />
+ );
+}
+
+export const RULE_SNOOZE_DESCRIPTION = ;