diff options
Diffstat (limited to 'lib/gitlab/usage_data_counters/static_site_editor_counter.rb')
-rw-r--r-- | lib/gitlab/usage_data_counters/static_site_editor_counter.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data_counters/static_site_editor_counter.rb b/lib/gitlab/usage_data_counters/static_site_editor_counter.rb new file mode 100644 index 00000000000..8886a106da8 --- /dev/null +++ b/lib/gitlab/usage_data_counters/static_site_editor_counter.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Gitlab + module UsageDataCounters + class StaticSiteEditorCounter < BaseCounter + KNOWN_EVENTS = %w[views].freeze + PREFIX = 'static_site_editor' + + class << self + def increment_views_count + count(:views) + end + end + end + end +end |