analytics: Add extra count stats.

Fill in remaining countstats in counts.py for our intended use cases.
This commit is contained in:
umkay 2016-11-02 18:13:32 -07:00 committed by Tim Abbott
parent 298890d125
commit e6ac8c3543
1 changed files with 6 additions and 2 deletions

View File

@ -326,5 +326,9 @@ COUNT_STATS = {
(UserProfile, 'is_bot'), CountStat.DAY, False),
'messages_sent:message_type': CountStat('messages_sent:message_type',
zerver_count_message_type_by_user, {},
None, CountStat.DAY, False)
}
None, CountStat.DAY, False),
'messages_sent:client': CountStat('messages_sent:client', zerver_count_message_by_user, {},
(Message, 'sending_client_id'), CountStat.HOUR, False),
'messages_sent_to_stream:is_bot': CountStat('messages_sent_to_stream:is_bot', zerver_count_message_by_stream,
{'is_active': True}, (UserProfile, 'is_bot'), CountStat.HOUR, False)
}