Users would like to know what has happened in the their repository, from inception to the present moment. The statistics feature will provide a means for users to query various dimensions of the repository for usage statistics.
User Stories and Features
- Stats
- resource count
- ocfl-size
- binary resource count
- binary byte count
- binary byte and resource count by mimetype
- resources (count and bytes) created over the last n number of days, weeks, months
- Provide some basic custom query capability
- API response bodies returned as JSON
Components
REST API
Documentation: Statistics
HTML UI
State Management
- statistics are stored in the database along with the other indexes
- on startup, the stats are compiled as part of the reindexing process.
- As resources are created, retrieved, updated and deleted, statistics recorded in the database
- Frequently used stats queries can be cached if necessary.