Class TenantQuotaExceededEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a tenant exceeds a quota or limit.
public sealed record TenantQuotaExceededEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<TenantQuotaExceededEvent>
- Inheritance
-
TenantQuotaExceededEvent
- Implements
- Inherited Members
Constructors
TenantQuotaExceededEvent(string, string, string, long, long, DateTimeOffset)
Integration event raised when a tenant exceeds a quota or limit.
public TenantQuotaExceededEvent(string TenantId, string Name, string QuotaType, long CurrentUsage, long Limit, DateTimeOffset ExceededAt)
Parameters
TenantIdstringThe unique identifier of the tenant.
NamestringThe name of the tenant.
QuotaTypestringThe type of quota exceeded (e.g., storage, users, API calls).
CurrentUsagelongThe current usage value.
LimitlongThe quota limit.
ExceededAtDateTimeOffsetThe timestamp when the quota was exceeded.
Properties
CurrentUsage
The current usage value.
public long CurrentUsage { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
ExceededAt
The timestamp when the quota was exceeded.
public DateTimeOffset ExceededAt { get; init; }
Property Value
Limit
The quota limit.
public long Limit { get; init; }
Property Value
Name
The name of the tenant.
public string Name { get; init; }
Property Value
QuotaType
The type of quota exceeded (e.g., storage, users, API calls).
public string QuotaType { get; init; }