Constructor RateLimitSnapshot
- Namespace
- IntentSharp.Resilience
- Assembly
- IntentSharp.dll
RateLimitSnapshot(string, double, int, long, long)
The state of a rate limiter for one provider at one moment.
public RateLimitSnapshot(string Provider, double AvailableTokens, int Capacity, long Allowed, long Denied)
Parameters
ProviderstringThe provider name.
AvailableTokensdoubleRequests that may start now without waiting; fractional while the bucket refills.
CapacityintThe most requests that may start at once (the burst size).
AllowedlongRequests permitted so far.
DeniedlongRequests refused so far because the wait would have exceeded their budget.