2020-10-13 18:08:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module UsageDataCounters
|
|
|
|
class StaticSiteEditorCounter < BaseCounter
|
2020-11-14 18:09:02 +00:00
|
|
|
KNOWN_EVENTS = %w[views commits merge_requests].freeze
|
2020-10-13 18:08:58 +00:00
|
|
|
PREFIX = 'static_site_editor'
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def increment_views_count
|
|
|
|
count(:views)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|