Table of Contents

Class RateLimitResult

Namespace
JD.AI.Core.Security
Assembly
JD.AI.Core.dll

Result of a rate limit check with quota metadata.

public sealed record RateLimitResult : IEquatable<RateLimitResult>
Inheritance
RateLimitResult
Implements
Inherited Members

Constructors

RateLimitResult(bool, int, int, DateTimeOffset)

Result of a rate limit check with quota metadata.

public RateLimitResult(bool Allowed, int Limit, int Remaining, DateTimeOffset ResetsAt)

Parameters

Allowed bool
Limit int
Remaining int
ResetsAt DateTimeOffset

Properties

Allowed

public bool Allowed { get; init; }

Property Value

bool

Limit

public int Limit { get; init; }

Property Value

int

Remaining

public int Remaining { get; init; }

Property Value

int

ResetsAt

public DateTimeOffset ResetsAt { get; init; }

Property Value

DateTimeOffset