Skip to content

Commit

Permalink
Update copy as per docs team feedback
Browse files Browse the repository at this point in the history
These were discussed in elastic/security-docs#4977
  • Loading branch information
rylnd committed Apr 5, 2024
1 parent fe1dad5 commit c52ebb7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ export const getEnableThresholdSuppressionLabel = (fields: string[] | undefined)
export const EQL_SEQUENCE_SUPPRESSION_DISABLE_TOOLTIP = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.eqlSequenceSuppressionDisableText',
{
defaultMessage: 'Suppression is not enabled for EQL sequence queries',
defaultMessage: 'Suppression is not supported for EQL sequence queries.',
}
);

export const EQL_SEQUENCE_SUPPRESSION_GROUPBY_VALIDATION_TEXT = i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.eqlSequenceSuppressionDisableText',
{
defaultMessage: `${EQL_SEQUENCE_SUPPRESSION_DISABLE_TOOLTIP}, please reset the suppression fields`,
defaultMessage: `${EQL_SEQUENCE_SUPPRESSION_DISABLE_TOOLTIP} Change the EQL query to a non-sequence query, or remove the suppression fields.`,
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ describe('eql_executor', () => {
});

expect(result.warningMessages).toContain(
'Alert suppression does not currently support EQL sequences. The rule will execute without alert suppression.'
'Suppression is not supported for EQL sequence queries. The rule will proceed without suppression.'
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const eqlExecutor = async ({
} else if (sequences) {
if (isAlertSuppressionActive && completeRule.ruleParams.alertSuppression) {
result.warningMessages.push(
'Alert suppression does not currently support EQL sequences. The rule will execute without alert suppression.'
'Suppression is not supported for EQL sequence queries. The rule will proceed without suppression.'
);
}
newSignals = wrapSequences(sequences, buildReasonMessageForEqlAlert);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@ export default ({ getService }: FtrProviderContext) => {
const [{ warnings }] = logs;

expect(warnings).toContain(
'Alert suppression does not currently support EQL sequences. The rule will execute without alert suppression.'
'Suppression is not supported for EQL sequence queries. The rule will proceed without suppression.'
);
});
});
Expand Down

0 comments on commit c52ebb7

Please sign in to comment.