Skip to content

Commit 2244d09

Browse files
committed
Fix various update cases
1 parent 9662f6c commit 2244d09

File tree

1 file changed

+8
-0
lines changed
  • internal/kibana/security_detection_rule

1 file changed

+8
-0
lines changed

internal/kibana/security_detection_rule/models.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ func (d SecurityDetectionRuleData) toEqlRuleUpdateProps(ctx context.Context) (kb
14151415

14161416
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
14171417
Actions: &eqlRule.Actions,
1418+
ResponseActions: &eqlRule.ResponseActions,
14181419
RuleId: &eqlRule.RuleId,
14191420
Enabled: &eqlRule.Enabled,
14201421
From: &eqlRule.From,
@@ -1500,6 +1501,7 @@ func (d SecurityDetectionRuleData) toEsqlRuleUpdateProps(ctx context.Context) (k
15001501

15011502
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
15021503
Actions: &esqlRule.Actions,
1504+
ResponseActions: &esqlRule.ResponseActions,
15031505
RuleId: &esqlRule.RuleId,
15041506
Enabled: &esqlRule.Enabled,
15051507
From: &esqlRule.From,
@@ -1606,6 +1608,7 @@ func (d SecurityDetectionRuleData) toMachineLearningRuleUpdateProps(ctx context.
16061608

16071609
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
16081610
Actions: &mlRule.Actions,
1611+
ResponseActions: &mlRule.ResponseActions,
16091612
RuleId: &mlRule.RuleId,
16101613
Enabled: &mlRule.Enabled,
16111614
From: &mlRule.From,
@@ -1695,6 +1698,7 @@ func (d SecurityDetectionRuleData) toNewTermsRuleUpdateProps(ctx context.Context
16951698

16961699
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
16971700
Actions: &newTermsRule.Actions,
1701+
ResponseActions: &newTermsRule.ResponseActions,
16981702
RuleId: &newTermsRule.RuleId,
16991703
Enabled: &newTermsRule.Enabled,
17001704
From: &newTermsRule.From,
@@ -1776,6 +1780,7 @@ func (d SecurityDetectionRuleData) toSavedQueryRuleUpdateProps(ctx context.Conte
17761780

17771781
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
17781782
Actions: &savedQueryRule.Actions,
1783+
ResponseActions: &savedQueryRule.ResponseActions,
17791784
RuleId: &savedQueryRule.RuleId,
17801785
Enabled: &savedQueryRule.Enabled,
17811786
From: &savedQueryRule.From,
@@ -1805,6 +1810,7 @@ func (d SecurityDetectionRuleData) toSavedQueryRuleUpdateProps(ctx context.Conte
18051810
RuleNameOverride: &savedQueryRule.RuleNameOverride,
18061811
TimestampOverride: &savedQueryRule.TimestampOverride,
18071812
TimestampOverrideFallbackDisabled: &savedQueryRule.TimestampOverrideFallbackDisabled,
1813+
Filters: &savedQueryRule.Filters,
18081814
}, &diags)
18091815

18101816
// Set optional query for saved query rules
@@ -1878,6 +1884,7 @@ func (d SecurityDetectionRuleData) toThreatMatchRuleUpdateProps(ctx context.Cont
18781884

18791885
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
18801886
Actions: &threatMatchRule.Actions,
1887+
ResponseActions: &threatMatchRule.ResponseActions,
18811888
RuleId: &threatMatchRule.RuleId,
18821889
Enabled: &threatMatchRule.Enabled,
18831890
From: &threatMatchRule.From,
@@ -1990,6 +1997,7 @@ func (d SecurityDetectionRuleData) toThresholdRuleUpdateProps(ctx context.Contex
19901997

19911998
d.setCommonUpdateProps(ctx, &CommonUpdateProps{
19921999
Actions: &thresholdRule.Actions,
2000+
ResponseActions: &thresholdRule.ResponseActions,
19932001
RuleId: &thresholdRule.RuleId,
19942002
Enabled: &thresholdRule.Enabled,
19952003
From: &thresholdRule.From,

0 commit comments

Comments
 (0)