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
MaxRequestsPerWindow
Maximum requests per tenant per window. 0 = unlimited.
public int MaxRequestsPerWindow { get; init; }
Property Value
MaxTokensPerDay
Maximum tokens consumed per day. 0 = unlimited.
public long MaxTokensPerDay { get; init; }
Property Value
OnQuotaExceeded
Action taken when any quota threshold is exceeded.
public QuotaExceededAction OnQuotaExceeded { get; init; }
Property Value
WindowDuration
Rolling window duration for quota tracking.
public TimeSpan WindowDuration { get; init; }