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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-24 06:07:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-24 06:07:40 +0300
commita908d3a2c87fa52f6d9c6c459455a138b096ab09 (patch)
tree28b7b3ad77573949d10d9e24964754935d518421 /lib/gitlab/tracking
parent8212423bb8e15f763092671a66b12fa52fde7d08 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/tracking')
-rw-r--r--lib/gitlab/tracking/service_ping_context.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/tracking/service_ping_context.rb b/lib/gitlab/tracking/service_ping_context.rb
index 393cd647e7f..3177dca4ef7 100644
--- a/lib/gitlab/tracking/service_ping_context.rb
+++ b/lib/gitlab/tracking/service_ping_context.rb
@@ -20,6 +20,13 @@ module Gitlab
def to_context
SnowplowTracker::SelfDescribingJson.new(SCHEMA_URL, @payload)
end
+
+ def to_h
+ {
+ schema: SCHEMA_URL,
+ data: @payload
+ }
+ end
end
end
end