diff --git a/.changelog/1183.txt b/.changelog/1183.txt new file mode 100644 index 00000000000..01e39476864 --- /dev/null +++ b/.changelog/1183.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +rulesets: add support for `score_per_period` and `score_response_header_name` +``` diff --git a/rulesets.go b/rulesets.go index 1f18d64a7aa..27521b024c5 100644 --- a/rulesets.go +++ b/rulesets.go @@ -643,12 +643,14 @@ type RulesetRule struct { // RulesetRuleRateLimit contains the structure of a HTTP rate limit Ruleset Rule. type RulesetRuleRateLimit struct { - Characteristics []string `json:"characteristics,omitempty"` - RequestsPerPeriod int `json:"requests_per_period,omitempty"` - Period int `json:"period,omitempty"` - MitigationTimeout int `json:"mitigation_timeout,omitempty"` - CountingExpression string `json:"counting_expression,omitempty"` - RequestsToOrigin bool `json:"requests_to_origin,omitempty"` + Characteristics []string `json:"characteristics,omitempty"` + RequestsPerPeriod int `json:"requests_per_period,omitempty"` + ScorePerPeriod int `json:"score_per_period,omitempty"` + ScoreResponseHeaderName string `json:"score_response_header_name,omitempty"` + Period int `json:"period,omitempty"` + MitigationTimeout int `json:"mitigation_timeout,omitempty"` + CountingExpression string `json:"counting_expression,omitempty"` + RequestsToOrigin bool `json:"requests_to_origin,omitempty"` } // RulesetRuleExposedCredentialCheck contains the structure of an exposed