WafRuleRateLimit class
WafRuleRateLimit
- Implemented types
Constructors
-
WafRuleRateLimit({required String $id, required String $createdAt, required String $updatedAt, required String name, required String description, required String teamId, required String projectId, required String resourceType, required String resourceId, required WafRuleAction action, required int priority, required bool enabled, required List<
Map> conditions, required Map<String, dynamic> config, required int limit, required int interval, required String key, required String strategy, required int maxBucketSize}) -
WafRuleRateLimit.fromMap(Map<
String, dynamic> map) -
factory
Properties
- $createdAt → String
-
WAF rule creation time in ISO 8601 format.
final
- $id → String
-
Rule ID.
final
- $updatedAt → String
-
WAF rule last update time in ISO 8601 format.
final
- action → WafRuleAction
-
Action performed when the rule matches.
final
-
conditions
→ List<
Map> -
List of conditions evaluated for this rule.
final
-
config
→ Map<
String, dynamic> -
Action specific configuration.
final
- description → String
-
Optional description for the rule.
final
- enabled → bool
-
Whether the rule is active.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → int
-
Interval in seconds for the rate limit window.
final
- key → String
-
Rate limit key:
iplimits per client IP,userIdlimits per authenticated user.final - limit → int
-
Maximum number of matching requests allowed for the given interval.
final
- maxBucketSize → int
-
Maximum burst capacity in tokens, applied by the
tokenBucketstrategy. The sustained refill rate islimit / interval. Defaults tolimit.final - name → String
-
Human friendly rule name.
final
- priority → int
-
Evaluation priority. Lower values execute earlier.
final
- projectId → String
-
Project ID.
final
- resourceId → String
-
Resource identifier. Empty for API-wide rules.
final
- resourceType → String
-
Resource type the rule is scoped to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strategy → String
-
Rate limit strategy:
fixedWindow,slidingWindow, ortokenBucket.final - teamId → String
-
Team ID.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited