summaryrefslogtreecommitdiff
path: root/lib/gitlab/usage/metrics/instrumentations/base_metric.rb
blob: 7b5bee3f8bd664cb7ccc63c225c3707535915bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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
        end
      end
    end
  end
end