Skip to content

Commit

Permalink
Update proto to include limit remaining (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
junr03 authored Oct 27, 2016
1 parent 0c61c70 commit 5d7a172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/common/ratelimit/ratelimit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ message RateLimitResponse {
Code code = 1;
// The current limit as configured by the server. Useful for debugging, etc.
RateLimit current_limit = 2;
// The limit remaining in the current time unit.
uint32 limit_remaining = 3;
}

// The overall response code which takes into account all of the descriptors that were passed
Expand All @@ -94,4 +96,4 @@ message RateLimitResponse {
// in the RateLimitRequest. This can be used by the caller to determine which individual
// descriptors failed and/or what the currently configured limits are for all of them.
repeated DescriptorStatus statuses = 2;
}
}

0 comments on commit 5d7a172

Please sign in to comment.