2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module Prometheus
|
|
|
|
module Metrics
|
|
|
|
class BaseService
|
|
|
|
include Gitlab::Utils::StrongMemoize
|
|
|
|
|
|
|
|
def initialize(metric, params = {})
|
|
|
|
@metric = metric
|
|
|
|
@params = params.dup
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
attr_reader :metric, :params
|
2020-04-22 19:07:51 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|