Skip to content

Commit

Permalink
DOC: update comments with new comparison opers (#57)
Browse files Browse the repository at this point in the history
This commit updates the code comments to reflect the new comparison
operators greaterEqual/lesserEqual as well as the new value type,
valueInt.
  • Loading branch information
daniel-corbett authored Sep 27, 2023
1 parent bbba41e commit c552bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2110,8 +2110,8 @@ func (sc *Client) DeleteSite(corpName, siteName string) error {
type Condition struct {
Type string `json:"type,omitempty"` //(group, single)
GroupOperator string `json:"groupOperator,omitempty"` //type: group - Conditions that must be matched when evaluating the request (all, any)
Field string `json:"field,omitempty"` //type: single - (scheme, method, path, useragent, domain, ip, responseCode, agentname, paramname, paramvalue, country, name, valueString, valueIp, signalType)
Operator string `json:"operator,omitempty"` //type: single - (equals, doesNotEqual, contains, doesNotContain, like, notLike, exists, doesNotExist, inList, notInList)
Field string `json:"field,omitempty"` //type: single - (scheme, method, path, useragent, domain, ip, responseCode, agentname, paramname, paramvalue, country, name, valueString, valueInt, valueIp, signalType)
Operator string `json:"operator,omitempty"` //type: single - (equals, doesNotEqual, contains, doesNotContain, greaterEqual, lesserEqual, like, notLike, exists, doesNotExist, inList, notInList)
Value string `json:"value,omitempty"` //type: single - See request fields (https://docs.signalsciences.net/using-signal-sciences/features/rules/#request-fields)
Conditions []Condition `json:"conditions,omitempty"`
}
Expand Down

0 comments on commit c552bb9

Please sign in to comment.