2021-06-08 01:23:25 +05:30
|
|
|
# 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
|
2021-10-27 15:23:28 +05:30
|
|
|
::Gitlab::Usage::Metric.all.map(&:with_value).reduce({}, :deep_merge)
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|