WafRuleRateLimit

data class WafRuleRateLimit(val interval: Int? = null, val status: WafRuleRateLimitStatus? = null, val subKey: String? = null, val target: String? = null, val threshold: Int? = null, val ttl: Int? = null)

Constructors

Link copied to clipboard
constructor(interval: Int? = null, status: WafRuleRateLimitStatus? = null, subKey: String? = null, target: String? = null, threshold: Int? = null, ttl: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val interval: Int? = null

Statistical duration, 5-1800.

Link copied to clipboard

Response code statistics. See status below.

Link copied to clipboard
val subKey: String? = null

The subfield of the target field. If you set target to Header, Query String Parameter, or Cookie Name, you must configure sub_key.

Link copied to clipboard
val target: String? = null

The statistical field for frequency control. Currently, IP, Header, Query String Parameter, Cookie Name, Session is supported.

Link copied to clipboard
val threshold: Int? = null

The trigger threshold of rate limiting. Valid values: 2 to 500000. Unit: requests.

Link copied to clipboard
val ttl: Int? = null

The validity period of the blacklist. Valid values: 60 to 86400. Unit: seconds.