Table of Contents

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

TenantId string

The unique identifier of the tenant.

Name string

The name of the tenant.

QuotaType string

The type of quota exceeded (e.g., storage, users, API calls).

CurrentUsage long

The current usage value.

Limit long

The quota limit.

ExceededAt DateTimeOffset

The timestamp when the quota was exceeded.

Properties

CurrentUsage

The current usage value.

public long CurrentUsage { get; init; }

Property Value

long

EventType

Gets the name of the event type for serialization and routing purposes.

public override string EventType { get; }

Property Value

string

ExceededAt

The timestamp when the quota was exceeded.

public DateTimeOffset ExceededAt { get; init; }

Property Value

DateTimeOffset

Limit

The quota limit.

public long Limit { get; init; }

Property Value

long

Name

The name of the tenant.

public string Name { get; init; }

Property Value

string

QuotaType

The type of quota exceeded (e.g., storage, users, API calls).

public string QuotaType { get; init; }

Property Value

string