2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Usage
|
|
|
|
module Metrics
|
|
|
|
module Instrumentations
|
|
|
|
class BaseMetric
|
|
|
|
include Gitlab::Utils::UsageData
|
2021-09-04 01:27:46 +05:30
|
|
|
include Gitlab::Usage::TimeFrame
|
2021-06-08 01:23:25 +05:30
|
|
|
|
|
|
|
attr_reader :time_frame
|
2021-09-04 01:27:46 +05:30
|
|
|
attr_reader :options
|
2021-06-08 01:23:25 +05:30
|
|
|
|
2021-09-04 01:27:46 +05:30
|
|
|
def initialize(time_frame:, options: {})
|
2021-06-08 01:23:25 +05:30
|
|
|
@time_frame = time_frame
|
2021-09-04 01:27:46 +05:30
|
|
|
@options = options
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|