RateConfig

Contains the rate configuration for a rate limit metric, specifying the allowed rate and time period.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The time period for the rate limit. Valid values:

Link copied to clipboard

The rate value for the limit. For request limits, this is the number of requests allowed per period. For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of concurrent connections allowed.

Functions

Link copied to clipboard
inline fun copy(block: RateConfig.Builder.() -> Unit = {}): RateConfig
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String