debian-mirror-gitlab/lib/gitlab/usage/metrics/instrumentations/base_metric.rb
2021-10-27 15:23:28 +05:30

26 lines
523 B
Ruby

# 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