Retention
How long snapshots, diffs, and logs are stored, plus ways to keep payload storage predictable.
Retention
Retention controls how long change history and diagnostic data stay available.
Snapshots and diffs
- Snapshots are kept for the period defined by your plan.
- Diffs keep hashes and clipped text so you can view change summaries even after payload pruning.
- Payload blobs in object storage follow the same retention window.
Audit and request logs
Audit logs are long-lived for accountability, while request metadata is pruned to keep storage bounded.
await prisma.snapshot.create({
data: {
monitorId: monitor.id,
fetchedAt,
contentHash: fetchResult.contentHash,
diffText: clipDiffText(fetchResult.diffText),
},
});Reducing footprint
- Use ignore rules to avoid noisy diffs.
- Prefer HEAD/headers mode when you only care about status and etags.
- Delete inactive monitors; their snapshots age out automatically.