diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-24 06:07:40 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-24 06:07:40 +0300 |
commit | a908d3a2c87fa52f6d9c6c459455a138b096ab09 (patch) | |
tree | 28b7b3ad77573949d10d9e24964754935d518421 /lib/gitlab/tracking | |
parent | 8212423bb8e15f763092671a66b12fa52fde7d08 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/tracking')
-rw-r--r-- | lib/gitlab/tracking/service_ping_context.rb | 7 |
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 |