debian-mirror-gitlab/lib/gitlab/usage_data_counters/static_site_editor_counter.rb
2021-01-29 00:20:46 +05:30

17 lines
336 B
Ruby

# frozen_string_literal: true
module Gitlab
module UsageDataCounters
class StaticSiteEditorCounter < BaseCounter
KNOWN_EVENTS = %w[views commits merge_requests].freeze
PREFIX = 'static_site_editor'
class << self
def increment_views_count
count(:views)
end
end
end
end
end