debian-mirror-gitlab/app/services/projects/prometheus/metrics/base_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
355 B
Ruby
Raw Permalink Normal View History

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