improve metrics gathered using in our traffic section

this also pulls out the middleware into its own home and inserts in front
This commit is contained in:
Sam
2015-02-05 16:08:52 +11:00
parent ebc2ad7c81
commit 08b790b3c2
14 changed files with 188 additions and 104 deletions

View File

@ -16,12 +16,8 @@ class AdminDashboardData
'system_private_messages',
'moderator_warning_private_messages',
'notify_moderators_private_messages',
'notify_user_private_messages',
'anon_reqs',
'crawler_reqs',
'logged_in_reqs',
'total_reqs'
]
'notify_user_private_messages'
] + ApplicationRequest.req_types.keys.map{|r| r + "_reqs"}
def problems
[ rails_env_check,