Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 

  1. Stats
    1. resource count
    2. ocfl-size
    3. binary resource count
    4. binary byte count
    5. binary byte and resource count  by mimetype
    6. resources  (count and bytes) created over the last n number of days, weeks, months
  2. Provide some basic custom query capability
  3. 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.