zulip/analytics/lib
arpit551 c4b5d09283 analytics: Add LoggingCount for messages read stats.
Whenever we use API queries to mark messages as read we now increment
two new LoggingCount stats, messages_read::hour and
messages_read_interactions::hour.

We add an early return in do_increment_logging_stat function if there
are no changes (increment is 0), as an optimization to avoid
unnecessary database queries.

We also log messages_read_interactions::hour Logging stat
as the number of API queries to mark messages as read.

We don't include tests for the case where do_update_pointer is called
because do_update_pointer will most likely be removed from the
codebase in the near future.
2020-06-14 21:15:27 -07:00
..
__init__.py
counts.py analytics: Add LoggingCount for messages read stats. 2020-06-14 21:15:27 -07:00
fixtures.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
time_utils.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00