You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/rate_limits_policy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Manages a Portkey rate limits policy. Controls the rate of requests or tokens co
17
17
18
18
### Required
19
19
20
-
-`conditions` (String) JSON array of conditions that define which requests the policy applies to. Each condition has 'key'and 'value'.
20
+
-`conditions` (String) JSON array of conditions that define which requests the policy applies to. Each condition has 'key', 'value' (string or array of strings), and an optional 'excludes' (string or array of strings).
21
21
-`group_by` (String) JSON array of group by fields that define how rate limiting is applied. Each item has 'key'.
22
22
-`type` (String) Policy type: 'requests' or 'tokens'.
Copy file name to clipboardExpand all lines: docs/resources/usage_limits_policy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Manages a Portkey usage limits policy. Controls total usage (cost or tokens) ove
17
17
18
18
### Required
19
19
20
-
-`conditions` (String) JSON array of conditions that define which requests the policy applies to. Each condition has 'key'and 'value'.
20
+
-`conditions` (String) JSON array of conditions that define which requests the policy applies to. Each condition has 'key', 'value' (string or array of strings), and an optional 'excludes' (string or array of strings).
21
21
-`credit_limit` (Number) Maximum usage allowed.
22
22
-`group_by` (String) JSON array of group by fields that define how usage is aggregated. Each item has 'key'.
Description: "JSON array of conditions that define which requests the policy applies to. Each condition has 'key' and 'value'.",
79
+
CustomType: jsontypes.NormalizedType{},
80
+
Description: "JSON array of conditions that define which requests the policy applies to. Each condition has 'key', 'value' (string or array of strings), and an optional 'excludes' (string or array of strings).",
79
81
Required: true,
80
82
PlanModifiers: []planmodifier.String{
81
83
stringplanmodifier.RequiresReplace(),
82
84
},
83
85
},
84
86
"group_by": schema.StringAttribute{
87
+
CustomType: jsontypes.NormalizedType{},
85
88
Description: "JSON array of group by fields that define how rate limiting is applied. Each item has 'key'.",
Description: "JSON array of conditions that define which requests the policy applies to. Each condition has 'key' and 'value'.",
80
+
CustomType: jsontypes.NormalizedType{},
81
+
Description: "JSON array of conditions that define which requests the policy applies to. Each condition has 'key', 'value' (string or array of strings), and an optional 'excludes' (string or array of strings).",
80
82
Required: true,
81
83
PlanModifiers: []planmodifier.String{
82
84
stringplanmodifier.RequiresReplace(),
83
85
},
84
86
},
85
87
"group_by": schema.StringAttribute{
88
+
CustomType: jsontypes.NormalizedType{},
86
89
Description: "JSON array of group by fields that define how usage is aggregated. Each item has 'key'.",
0 commit comments