Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-04-05 15:29:48 +0300
committerRémy Coutable <remy@rymai.me>2017-04-14 16:20:55 +0300
commit0483019e9800dc1b4ef4493890f815f047b7c04e (patch)
tree24430c787a2e69166ccd214cc1e15a489f32e9e9 /app/workers
parentebd5e9b4549ebc80155a5a8f139efdb40b6f8b12 (diff)
Port 'Add more usage data to EE ping' to CE
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/735
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/gitlab_usage_ping_worker.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/workers/gitlab_usage_ping_worker.rb b/app/workers/gitlab_usage_ping_worker.rb
index 2e039b7f3c5..866f5d03d8b 100644
--- a/app/workers/gitlab_usage_ping_worker.rb
+++ b/app/workers/gitlab_usage_ping_worker.rb
@@ -15,7 +15,7 @@ class GitlabUsagePingWorker
begin
HTTParty.post(url,
- body: data.to_json,
+ body: Gitlab::UsageData.to_json,
headers: { 'Content-type' => 'application/json' }
)
rescue HTTParty::Error => e
@@ -27,13 +27,6 @@ class GitlabUsagePingWorker
Gitlab::ExclusiveLease.new('gitlab_usage_ping_worker:ping', timeout: LEASE_TIMEOUT).try_obtain
end
- def data
- usage_data = { version: Gitlab::VERSION,
- active_user_count: User.active.acount }
-
- usage_data
- end
-
def url
'https://version.gitlab.com/usage_data'
end