Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hegyi <ahegyi@gitlab.com>2019-09-12 14:12:29 +0300
committerPeter Leitzen <pleitzen@gitlab.com>2019-09-12 14:12:29 +0300
commitff7c992ebd03b8f81525fa074e465badcae682f2 (patch)
tree9bdf0a2f958e704edde148fb1bdfcb3d0e1f76d6 /lib/gitlab/usage_data_counters
parentc2e46802626d44d383c1a4aec344d01602b9e9ea (diff)
Setup counter for Productivity Analytics
This change sets up a usage counter for productivity analytics feature.
Diffstat (limited to 'lib/gitlab/usage_data_counters')
-rw-r--r--lib/gitlab/usage_data_counters/productivity_analytics_counter.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data_counters/productivity_analytics_counter.rb b/lib/gitlab/usage_data_counters/productivity_analytics_counter.rb
new file mode 100644
index 00000000000..3b92fa01fbe
--- /dev/null
+++ b/lib/gitlab/usage_data_counters/productivity_analytics_counter.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+module Gitlab::UsageDataCounters
+ class ProductivityAnalyticsCounter < BaseCounter
+ KNOWN_EVENTS = %w[views].freeze
+ PREFIX = 'productivity_analytics'
+ end
+end