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

base_metric.rb « instrumentations « metrics « usage « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a264f9484f3a8fec6a8e3e6099a9a72513875df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

module Gitlab
  module Usage
    module Metrics
      module Instrumentations
        class BaseMetric
          include Gitlab::Utils::UsageData
          include Gitlab::Usage::TimeFrame

          attr_reader :time_frame
          attr_reader :options

          def initialize(time_frame:, options: {})
            @time_frame = time_frame
            @options = options
          end

          def instrumentation
            value
          end
        end
      end
    end
  end
end