Skip to content

Commit

Permalink
Add support for from_list in rule action parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
piperswe committed Jun 14, 2022
1 parent 5c7e96e commit a3876f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rulesets.go
Expand Up @@ -199,6 +199,14 @@ type RulesetRuleActionParameters struct {
RequestFields []RulesetActionParametersLogCustomField `json:"request_fields,omitempty"`
ResponseFields []RulesetActionParametersLogCustomField `json:"response_fields,omitempty"`
CookieFields []RulesetActionParametersLogCustomField `json:"cookie_fields,omitempty"`
FromList *RulesetRuleActionParametersFromList `json:"from_list,omitempty"`
}

// RulesetRuleActionParametersFromList holds the FromList struct for
// actions which pull data from a list.
type RulesetRuleActionParametersFromList struct {
Name string `json:"name"`
Key string `json:"key"`
}

// RulesetRuleActionParametersBlockResponse holds the BlockResponse struct
Expand Down

0 comments on commit a3876f5

Please sign in to comment.