Add a new statistics/analytics framework.

This is a first pass at building a framework for collecting various
stats about realms, users, streams, etc. Includes:
* New analytics tables for storing counts data
* Raw SQL queries for pulling data from zerver/models.py tables
* Aggregation functions for aggregating hourly stats into daily stats, and
  aggregating user/stream level stats into realm level stats
* A management command for pulling the data

Note that counts.py was added to the linter exclude list due to errors
around %%s.
This commit is contained in:
umkay
2016-07-29 12:52:45 -07:00
committed by Tim Abbott
parent 43e21f6fb4
commit d260a22637
14 changed files with 1028 additions and 2 deletions

View File