Skip to content

Commit

Permalink
properly display rule definition step readonly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Nov 3, 2024
1 parent 0cd126f commit b48f32b
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ import {
EQL_SEQUENCE_SUPPRESSION_GROUPBY_VALIDATION_TEXT,
} from './translations';
import { getQueryRequiredMessage } from './utils';
import { ALERT_SUPPRESSION_FIELDS } from '../../../rule_creation/components/alert_suppression_edit/fields';
import {
ALERT_SUPPRESSION_DURATION,
ALERT_SUPPRESSION_FIELDS,
ALERT_SUPPRESSION_MISSING_FIELDS,
} from '../../../rule_creation/components/alert_suppression_edit/fields';
import * as alertSuppressionEditI81n from '../../../rule_creation/components/alert_suppression_edit/translations';

export const schema: FormSchema<DefineStepRule> = {
index: {
Expand Down Expand Up @@ -685,6 +690,17 @@ export const schema: FormSchema<DefineStepRule> = {
},
],
},
[ALERT_SUPPRESSION_DURATION]: {
label: i18n.translate(
'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.groupByDurationValueLabel',
{
defaultMessage: 'Suppress alerts for',
}
),
},
[ALERT_SUPPRESSION_MISSING_FIELDS]: {
label: alertSuppressionEditI81n.ALERT_SUPPRESSION_MISSING_FIELDS_LABEL,
},
shouldLoadQueryDynamically: {
type: FIELD_TYPES.CHECKBOX,
defaultValue: false,
Expand Down

0 comments on commit b48f32b

Please sign in to comment.