Table of Contents

Class TenantQuotaConfig

Namespace
JD.AI.Core.MultiTenancy
Assembly
JD.AI.Core.dll

Configuration for per-tenant quotas.

public sealed class TenantQuotaConfig
Inheritance
TenantQuotaConfig
Inherited Members

Properties

MaxConcurrentSessions

Maximum concurrent agent sessions per tenant. 0 = unlimited.

public int MaxConcurrentSessions { get; init; }

Property Value

int

MaxRequestsPerWindow

Maximum requests per tenant per window. 0 = unlimited.

public int MaxRequestsPerWindow { get; init; }

Property Value

int

MaxTokensPerDay

Maximum tokens consumed per day. 0 = unlimited.

public long MaxTokensPerDay { get; init; }

Property Value

long

OnQuotaExceeded

Action taken when any quota threshold is exceeded.

public QuotaExceededAction OnQuotaExceeded { get; init; }

Property Value

QuotaExceededAction

WindowDuration

Rolling window duration for quota tracking.

public TimeSpan WindowDuration { get; init; }

Property Value

TimeSpan