Skip to content

RetentionRule

Defined in: src/core.ts:143

One retention rule set. When both fields are set, an item is kept if either rule keeps it (union of keeps — the same semantics as backup tools): pruned only when it is outside the keepLast most recent AND older than maxAge.

Property Type Description Defined in
keepLast? number Keep at most the N most recent items. src/core.ts:145
maxAge? WebhookDuration Keep items newer than this age (relative to prune time). src/core.ts:147