2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module UsageDataCounters
|
|
|
|
class StaticSiteEditorCounter < BaseCounter
|
2021-01-29 00:20:46 +05:30
|
|
|
KNOWN_EVENTS = %w[views commits merge_requests].freeze
|
2021-01-03 14:25:43 +05:30
|
|
|
PREFIX = 'static_site_editor'
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def increment_views_count
|
|
|
|
count(:views)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|