Skip to content

config properties rate_limiter properties token_limits

GitHub Action edited this page Nov 7, 2024 · 6 revisions

Version

v1.2.1

token_limits Type

object (Details)

token_limits Properties

Property Type Required Nullable Defined by
tokens integer Required cannot be null Config
interval string Required cannot be null Config

tokens

tokens determines how many operations/requests can occur in the given interval.

tokens

  • is required

  • cannot be null

tokens Type

integer

tokens Default Value

The default value is:

3

interval

interval determines when to reset the token interval. It must be a (possibly signed) sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

interval

  • is required

  • cannot be null

interval Type

string

interval Default Value

The default value is:

"1m"
Clone this wiki locally