ratelimit: allow rate limit names in the global rate limit response (#10557)

This part of the global rate limiter api is not currently used by envoy, but for anyone implementing the envoy global rate limiter api being able to describe what specific limit you've hit in a human-readable and/or machine-readable way will be useful for debugging, alerting, etc.

Risk Level: Low
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

Fixes #10556

Signed-off-by: David Weitzman <dweitzman@pinterest.com>

Mirrored from https://github.com/envoyproxy/envoy @ 99706022206acb99bd8093c654fc84f6cd5a877e
master-ci-test
data-plane-api(CircleCI) 5 years ago
parent 4db5a5658b
commit 3981b5e8b2
  1. 3
      envoy/service/ratelimit/v2/rls.proto
  2. 3
      envoy/service/ratelimit/v3/rls.proto

@ -77,6 +77,9 @@ message RateLimitResponse {
DAY = 4;
}
// A name or description of this limit.
string name = 3;
// The number of requests per unit of time.
uint32 requests_per_unit = 1;

@ -86,6 +86,9 @@ message RateLimitResponse {
DAY = 4;
}
// A name or description of this limit.
string name = 3;
// The number of requests per unit of time.
uint32 requests_per_unit = 1;

Loading…
Cancel
Save