debian-mirror-gitlab/lib/gitlab/usage_data_metrics.rb
2021-10-27 15:23:28 +05:30

12 lines
327 B
Ruby

# frozen_string_literal: true
module Gitlab
class UsageDataMetrics
class << self
# Build the Usage Ping JSON payload from metrics YAML definitions which have instrumentation class set
def uncached_data
::Gitlab::Usage::Metric.all.map(&:with_value).reduce({}, :deep_merge)
end
end
end
end