Skip to content

Commit

Permalink
rate_limit: Add time unit week (#37494)
Browse files Browse the repository at this point in the history
Following on from envoyproxy/envoy#24070 and
adding support for week as a unit of time for ratelimits as this is
something my team currently needs and WEEK felt sad as it was missing
the protobuf party.

Ideally we would have something like
envoyproxy/envoy#33277 but in the interim it
makes sense to add WEEK here since we have every other period already
except week.

Signed-off-by: Stefan Sedich <[email protected]>

Mirrored from https://github.com/envoyproxy/envoy @ 33fb49977a10657a84a4aff1ea8c7988c54e3c42
  • Loading branch information
update-envoy[bot] committed Dec 9, 2024
1 parent 2ba28c1 commit 3754ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions envoy/service/ratelimit/v3/rls.proto
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ message RateLimitResponse {
// The time unit representing a day.
DAY = 4;

// The time unit representing a week.
WEEK = 7;

// The time unit representing a month.
MONTH = 5;

Expand Down

0 comments on commit 3754ef7

Please sign in to comment.