summaryrefslogtreecommitdiff
path: root/lib/gitlab/usage_data.rb
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2019-07-19 11:11:27 +0000
committerNick Thomas <nick@gitlab.com>2019-07-19 11:11:27 +0000
commit01685eed7674ec841b4249b42f9b350f4a105e4a (patch)
tree54d710450f9d7a99e6eb9daac4b65efc7bbda6c8 /lib/gitlab/usage_data.rb
parent550ac6ef823d76a7274b562cd63d2dddafa65b2f (diff)
downloadgitlab-ce-01685eed7674ec841b4249b42f9b350f4a105e4a.tar.gz
Added Usage Data for some Web IDE actions
The actions tracked in the web IDE are: - creation of commits - creation of merge requests - projects loaded
Diffstat (limited to 'lib/gitlab/usage_data.rb')
-rw-r--r--lib/gitlab/usage_data.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index 7572c0bdbfd..43072053e57 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -130,7 +130,9 @@ module Gitlab
def usage_counters
{
- web_ide_commits: Gitlab::UsageDataCounters::WebIdeCounter.total_commits_count
+ web_ide_commits: Gitlab::UsageDataCounters::WebIdeCounter.total_commits_count,
+ web_ide_merge_requests: Gitlab::UsageDataCounters::WebIdeCounter.total_merge_requests_count,
+ web_ide_views: Gitlab::UsageDataCounters::WebIdeCounter.total_views_count
}
end