Documentation
Table of Contents

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

Provider string

The provider name.

AvailableTokens double

Requests that may start now without waiting; fractional while the bucket refills.

Capacity int

The most requests that may start at once (the burst size).

Allowed long

Requests permitted so far.

Denied long

Requests refused so far because the wait would have exceeded their budget.