From 6b92e1ad7c3e218c79dd193503ad1f5ca15e5b99 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Thu, 29 Sep 2022 15:56:55 +1000 Subject: [PATCH] rulesets: add support for overridding all rule sensitivity on a rule --- .changelog/1093.txt | 3 +++ rulesets.go | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .changelog/1093.txt diff --git a/.changelog/1093.txt b/.changelog/1093.txt new file mode 100644 index 00000000000..b9ebd562f1a --- /dev/null +++ b/.changelog/1093.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +rulesets: add support for `sensitivity_level` to override all rule sensitivity +``` diff --git a/rulesets.go b/rulesets.go index 2a2d464c543..5ebc585e30a 100644 --- a/rulesets.go +++ b/rulesets.go @@ -407,10 +407,11 @@ type RulesetRuleActionParametersHTTPHeader struct { } type RulesetRuleActionParametersOverrides struct { - Enabled *bool `json:"enabled,omitempty"` - Action string `json:"action,omitempty"` - Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"` - Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Action string `json:"action,omitempty"` + SensitivityLevel string `json:"sensitivity_level,omitempty"` + Categories []RulesetRuleActionParametersCategories `json:"categories,omitempty"` + Rules []RulesetRuleActionParametersRules `json:"rules,omitempty"` } type RulesetRuleActionParametersCategories struct {