GetRateLimitResult

data class GetRateLimitResult(val action: GetRateLimitAction, val bypasses: List<GetRateLimitBypass>, val description: String, val disabled: Boolean, val id: String, val match: GetRateLimitMatch, val period: Double, val rateLimitId: String? = null, val threshold: Double, val zoneId: String)

A collection of values returned by getRateLimit.

Constructors

Link copied to clipboard
constructor(action: GetRateLimitAction, bypasses: List<GetRateLimitBypass>, description: String, disabled: Boolean, id: String, match: GetRateLimitMatch, period: Double, rateLimitId: String? = null, threshold: Double, zoneId: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The action to perform when the threshold of matched traffic within the configured period is exceeded.

Link copied to clipboard

Criteria specifying when the current rate limit should be bypassed. You can specify that the rate limit should not apply to one or more URLs.

Link copied to clipboard

An informative summary of the rate limit. This value is sanitized and any tags will be removed.

Link copied to clipboard

When true, indicates that the rate limit is currently disabled.

Link copied to clipboard
val id: String

The unique identifier of the rate limit.

Link copied to clipboard

Determines which traffic the rate limit counts towards the threshold.

Link copied to clipboard

The time in seconds (an integer value) to count matching traffic. If the count exceeds the configured threshold within this period, Cloudflare will perform the configured action.

Link copied to clipboard
val rateLimitId: String? = null

The unique identifier of the rate limit.

Link copied to clipboard

The threshold that will trigger the configured mitigation action. Configure this value along with the period property to establish a threshold per period.

Link copied to clipboard

Identifier