Class RateLimitSnapshot
- Namespace
- IntentSharp.Resilience
- Assembly
- IntentSharp.dll
The state of a rate limiter for one provider at one moment.
public sealed record RateLimitSnapshot : IEquatable<RateLimitSnapshot>
- Inheritance
-
objectRateLimitSnapshot
- Implements
-
IEquatable<RateLimitSnapshot>
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- RateLimitSnapshot(string, double, int, long, long)
The state of a rate limiter for one provider at one moment.
Properties
- Allowed
Requests permitted so far.
- AvailableTokens
Requests that may start now without waiting; fractional while the bucket refills.
- Capacity
The most requests that may start at once (the burst size).
- Denied
Requests refused so far because the wait would have exceeded their budget.
- Provider
The provider name.