Home

envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit
.withDescriptors([ types.envoy.extensions.common.ratelimit.v3.LocalRateLimitDescriptor ])
.withEnableXRatelimitHeaders(types.envoy.extensions.common.ratelimit.v3.XRateLimitHeadersRFCVersion.OFF)
.withFilterEnabled(types.envoy.config.core.v3.RuntimeFractionalPercent)
.withFilterEnforced(types.envoy.config.core.v3.RuntimeFractionalPercent)
.withLocalRateLimitPerDownstreamConnection(false)
.withRequestHeadersToAddWhenNotEnforced([ types.envoy.config.core.v3.HeaderValueOption ])
.withResponseHeadersToAdd([ types.envoy.config.core.v3.HeaderValueOption ])
.withStage(1)
.withStatPrefix('string')
.withStatus(types.envoy.type.v3.HttpStatus)
.withTokenBucket(types.envoy.type.v3.TokenBucket)
.withVhRateLimits(types.envoy.extensions.common.ratelimit.v3.VhRateLimitsOptions.OVERRIDE)
._validate()

Fields

Name Type One-of group Required Constraints
descriptors [] envoy.extensions.common.ratelimit.v3.LocalRateLimitDescriptor  
enable_x_ratelimit_headers envoy.extensions.common.ratelimit.v3.XRateLimitHeadersRFCVersion   {"Enum":{"defined_only":true}}
filter_enabled envoy.config.core.v3.RuntimeFractionalPercent  
filter_enforced envoy.config.core.v3.RuntimeFractionalPercent  
local_rate_limit_per_downstream_connection bool  
request_headers_to_add_when_not_enforced [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":10}}
response_headers_to_add [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":10}}
stage uint32   {"Uint32":{"lte":10}}
stat_prefix string   {"String_":{"WellKnown":null,"min_len":1}}
status envoy.type.v3.HttpStatus  
token_bucket envoy.type.v3.TokenBucket  
vh_rate_limits envoy.extensions.common.ratelimit.v3.VhRateLimitsOptions   {"Enum":{"defined_only":true}}