.. _envoy_api_file_envoy/type/token_bucket.proto: Token bucket ============ .. _envoy_api_msg_type.TokenBucket: type.TokenBucket ---------------- `[type.TokenBucket proto] `_ Configures a token bucket, typically used for rate limiting. .. code-block:: json { "max_tokens": "...", "tokens_per_fill": "{...}", "fill_interval": "{...}" } .. _envoy_api_field_type.TokenBucket.max_tokens: max_tokens (`uint32 `_) The maximum tokens that the bucket can hold. This is also the number of tokens that the bucket initially contains. .. _envoy_api_field_type.TokenBucket.tokens_per_fill: tokens_per_fill (`UInt32Value `_) The number of tokens added to the bucket during each fill interval. If not specified, defaults to a single token. .. _envoy_api_field_type.TokenBucket.fill_interval: fill_interval (`Duration `_, *REQUIRED*) The fill interval that tokens are added to the bucket. During each fill interval `tokens_per_fill` are added to the bucket. The bucket will never contain more than `max_tokens` tokens.