2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Projects::UsagePingController < Projects::ApplicationController
|
|
|
|
before_action :authenticate_user!
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
feature_category :usage_ping
|
2021-01-03 14:25:43 +05:30
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
def web_ide_clientside_preview
|
|
|
|
return render_404 unless Gitlab::CurrentSettings.web_ide_clientside_preview_enabled?
|
|
|
|
|
|
|
|
Gitlab::UsageDataCounters::WebIdeCounter.increment_previews_count
|
|
|
|
|
|
|
|
head(200)
|
|
|
|
end
|
2020-05-24 23:13:21 +05:30
|
|
|
|
|
|
|
def web_ide_pipelines_count
|
|
|
|
Gitlab::UsageDataCounters::WebIdeCounter.increment_pipelines_count
|
|
|
|
|
|
|
|
head(200)
|
|
|
|
end
|
2019-12-26 22:10:19 +05:30
|
|
|
end
|