Welcome to mirror list, hosted at ThFree Co, Russian Federation.

usage_data_metrics.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ef201121d9ddaa3f7fdb426e90902ef9afb523a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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