RetentionOptions
Defined in: src/core.ts:124
Retention policy for AuditCoreOptions.retention.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
ignoreStreams? |
boolean |
Prune even past stream cursors that have not caught up (default false: events a stream has not delivered yet are kept, ADR 0008). |
- | src/core.ts:131 |
keepLast? |
number |
Keep at most the N most recent events per tenant. | RetentionRule.keepLast |
src/core.ts:118 |
maxAge? |
AuditDuration |
Keep events recorded within this age (e.g. "365d"). |
RetentionRule.maxAge |
src/core.ts:120 |
tenants? |
Record<string, RetentionRule> |
Per-tenant overrides (e.g. an enterprise plan with longer retention). | - | src/core.ts:126 |