diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-01-20 15:24:53 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-01-20 17:24:53 -0300 |
commit | 11a688d3813646aeb97f58b61c083b019da66cfc (patch) | |
tree | 2d1c7085837505fb49ecba4dd49c8a34b0a5888c /webapp/utils | |
parent | 66dddbdb7895a87e858f9238e546cedc6e05e34e (diff) | |
download | chat-11a688d3813646aeb97f58b61c083b019da66cfc.tar.gz chat-11a688d3813646aeb97f58b61c083b019da66cfc.tar.bz2 chat-11a688d3813646aeb97f58b61c083b019da66cfc.zip |
Adding active users statistics to system console (#5141)
Diffstat (limited to 'webapp/utils')
-rw-r--r-- | webapp/utils/async_client.jsx | 8 | ||||
-rw-r--r-- | webapp/utils/constants.jsx | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index 25724ec5e..cd38be811 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -1039,6 +1039,14 @@ export function getStandardAnalytics(teamId) { if (data[index].name === 'total_read_db_connections') { stats[StatTypes.TOTAL_READ_DB_CONNECTIONS] = data[index].value; } + + if (data[index].name === 'daily_active_users') { + stats[StatTypes.DAILY_ACTIVE_USERS] = data[index].value; + } + + if (data[index].name === 'monthly_active_users') { + stats[StatTypes.MONTHLY_ACTIVE_USERS] = data[index].value; + } } AppDispatcher.handleServerAction({ diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index b1c188d89..86147ee8c 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -260,7 +260,9 @@ export const Constants = { NEWLY_CREATED_USERS: null, TOTAL_WEBSOCKET_CONNECTIONS: null, TOTAL_MASTER_DB_CONNECTIONS: null, - TOTAL_READ_DB_CONNECTIONS: null + TOTAL_READ_DB_CONNECTIONS: null, + DAILY_ACTIVE_USERS: null, + MONTHLY_ACTIVE_USERS: null }), STAT_MAX_ACTIVE_USERS: 20, STAT_MAX_NEW_USERS: 20, |