Skip to content

Commit

Permalink
Add logging configuration for rulesets rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Alberto Polo committed Mar 30, 2022
1 parent 7826722 commit 7a5f4a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rulesets.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ type RulesetRule struct {
ScoreThreshold int `json:"score_threshold,omitempty"`
RateLimit *RulesetRuleRateLimit `json:"ratelimit,omitempty"`
ExposedCredentialCheck *RulesetRuleExposedCredentialCheck `json:"exposed_credential_check,omitempty"`
Logging *RulesetRuleLogging `json:"logging,omitempty"`
}

// RulesetRuleRateLimit contains the structure of a HTTP rate limit Ruleset Rule.
Expand All @@ -275,6 +276,11 @@ type RulesetRuleExposedCredentialCheck struct {
PasswordExpression string `json:"password_expression,omitempty"`
}

// RulesetRuleLogging contains the logging configuration for the rule.
type RulesetRuleLogging struct {
Enabled *bool `json:"enabled,omitempty"`
}

// UpdateRulesetRequest is the representation of a Ruleset update.
type UpdateRulesetRequest struct {
Description string `json:"description"`
Expand Down

0 comments on commit 7a5f4a7

Please sign in to comment.