diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-17 12:08:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-17 12:08:04 +0300 |
commit | f4cab593243c89a6e22a546d253a546e0d1174af (patch) | |
tree | 84e195ef03fa8c4e2e2242d55b3822956f852fe9 /scripts | |
parent | 172e4a12748fd146fdd0e9eca12ade4c51dabda9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/internal_events/monitor.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/internal_events/monitor.rb b/scripts/internal_events/monitor.rb index e9ba1dbfbb7..03f17ed257d 100644 --- a/scripts/internal_events/monitor.rb +++ b/scripts/internal_events/monitor.rb @@ -59,6 +59,7 @@ def extract_standard_context(event) next unless context['schema'].start_with?('iglu:com.gitlab/gitlab_standard/jsonschema') return { + user_id: context["data"]["user_id"], namespace_id: context["data"]["namespace_id"], project_id: context["data"]["project_id"], @@ -73,7 +74,7 @@ def generate_snowplow_table @initial_max_timestamp ||= events.map { |e| e['rawEvent']['parameters']['dtm'].to_i }.max || 0 rows = [] - rows << ['Event Name', 'Collector Timestamp', 'user_id', 'namespace_id', 'project_id', 'plan'] + rows << ['Event Name', 'Collector Timestamp', 'Category', 'user_id', 'namespace_id', 'project_id', 'plan'] rows << :separator events.each do |event| @@ -82,6 +83,7 @@ def generate_snowplow_table row = [ event['event']['se_action'], event['event']['collector_tstamp'], + event['event']['se_category'], standard_context[:user_id], standard_context[:namespace_id], standard_context[:project_id], |