SecurityPolicyRuleRateLimitOptions class
Constructors
-
SecurityPolicyRuleRateLimitOptions({int? banDurationSec, SecurityPolicyRuleRateLimitOptionsThreshold? banThreshold, String? conformAction, String? enforceOnKey, List<
SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> ? enforceOnKeyConfigs, String? enforceOnKeyName, String? exceedAction, SecurityPolicyRuleRedirectOptions? exceedRedirectOptions, SecurityPolicyRuleRateLimitOptionsThreshold? rateLimitThreshold}) - SecurityPolicyRuleRateLimitOptions.fromJson(Map json_)
Properties
- banDurationSec ↔ int?
-
Can only be specified if the action for the rule is "rate_based_ban".
getter/setter pair
- banThreshold ↔ SecurityPolicyRuleRateLimitOptionsThreshold?
-
Can only be specified if the action for the rule is "rate_based_ban".
getter/setter pair
- conformAction ↔ String?
-
Action to take for requests that are under the configured rate limit
threshold.
getter/setter pair
- enforceOnKey ↔ String?
-
Determines the key to enforce the rate_limit_threshold on.
getter/setter pair
-
enforceOnKeyConfigs
↔ List<
SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> ? -
If specified, any combination of values of
enforce_on_key_type/enforce_on_key_name is treated as the key on which
ratelimit threshold/action is enforced.
getter/setter pair
- enforceOnKeyName ↔ String?
-
Rate limit key name applicable only for the following key types:
HTTP_HEADER -- Name of the HTTP header whose value is taken as the key
value.
getter/setter pair
- exceedAction ↔ String?
-
Action to take for requests that are above the configured rate limit
threshold, to either deny with a specified HTTP response code, or redirect
to a different endpoint.
getter/setter pair
- exceedRedirectOptions ↔ SecurityPolicyRuleRedirectOptions?
-
Parameters defining the redirect action that is used as the exceed action.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- rateLimitThreshold ↔ SecurityPolicyRuleRateLimitOptionsThreshold?
-
Threshold at which to begin ratelimiting.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited