Class: Projects::Prometheus::Metrics::BaseService

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/services/projects/prometheus/metrics/base_service.rb

Direct Known Subclasses

DestroyService, UpdateService

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

#initialize(metric, params = {}) ⇒ BaseService

Returns a new instance of BaseService.


9
10
11
12
13
# File 'app/services/projects/prometheus/metrics/base_service.rb', line 9

def initialize(metric, params = {})
  @metric = metric
  @project = metric.project
  @params = params.dup
end