Most services report what's true now and forget the rest. Parcel lists the deliveries on the way and a short list of recent ones, so a page that reads it can't say how long deliveries took last quarter. Other services report a reading only as it is now.
History keeps what you choose from those answers, on this Mac. The source that fetches from the service gets a collect, which says which items to keep, which of their fields, under what key and for how long. Any page it names as a reader can then add a dataset source, which answers with the kept rows for the period showing.
In two page files
packages.json
"parcel": { "url": "https://api.parcel.app", … "collect": { "dataset": "parcel-deliveries", "readers": ["delivery-times"], … } }delivery-times.json
"kept": { "dataset": "parcel-deliveries" }In Legato
Delivery times- Delivered
- 18
- Average
- 3.2 days
- Since
- Aug 14
collect names the history and the page that may read it. That page’s own source names the same history, and its cards read the rows for the period showing.sample keeps a reading of every item at a set interval, such as each monitor's state every 5 minutes, and a page for one item reads its own. An agent or a script can add rows too, for data that reaches the Mac some other way.
The rows stay on this Mac and don't sync. Settings → History shows each history, exports it and deletes it.
Start here
- Collect and samplesWhat
collectandsamplekeep, with every setting, and when a page needs neither. - Reading historyThe source a reader page uses and the answer it gets.
- Parcel exampleTwo complete pages, one that keeps deliveries and one that reports how long they took.
What a history holds
- Dates and retentionWhich date a row counts under, and how long rows stay.
- Accounts and readersWhose data a history holds, which pages may read it, and what happens when its page goes away.
- Coverage and local storageThe dates a history has rows for, the gaps in it, and where the data is kept.
- Rows from outsideRows added by an agent or a script.