diff options
author | Igor <idrozdov@gitlab.com> | 2019-08-26 14:30:45 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-08-26 14:30:45 +0000 |
commit | a8040a61d8bb6edb325236f9748c30e39ecaa335 (patch) | |
tree | ac7b8a093a8575221bf0d5ee3ef5bfe288c84e31 /lib | |
parent | 830ea119940d0cf5f29720cc4e24e3361e7fc174 (diff) | |
download | gitlab-ce-a8040a61d8bb6edb325236f9748c30e39ecaa335.tar.gz |
Add usage pings for merge request creating
Code Review Usage Ping for Create SMAU
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/usage_data.rb | 3 | ||||
-rw-r--r-- | lib/gitlab/usage_data_counters/merge_request_counter.rb | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 353298e67b3..a93301cb4ce 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -142,7 +142,8 @@ module Gitlab Gitlab::UsageDataCounters::SnippetCounter, Gitlab::UsageDataCounters::SearchCounter, Gitlab::UsageDataCounters::CycleAnalyticsCounter, - Gitlab::UsageDataCounters::SourceCodeCounter + Gitlab::UsageDataCounters::SourceCodeCounter, + Gitlab::UsageDataCounters::MergeRequestCounter ] end diff --git a/lib/gitlab/usage_data_counters/merge_request_counter.rb b/lib/gitlab/usage_data_counters/merge_request_counter.rb new file mode 100644 index 00000000000..e786e595f77 --- /dev/null +++ b/lib/gitlab/usage_data_counters/merge_request_counter.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Gitlab + module UsageDataCounters + class MergeRequestCounter < BaseCounter + KNOWN_EVENTS = %w[create].freeze + PREFIX = 'merge_request' + end + end +end |