Class: Gitlab::Ci::Artifacts::Metrics

Inherits:
Object
  • Object
show all
Includes:
Utils::StrongMemoize
Defined in:
lib/gitlab/ci/artifacts/metrics.rb

Instance Method Summary collapse

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Instance Method Details

#increment_destroyed_artifacts_bytes(bytes) ⇒ Object


13
14
15
# File 'lib/gitlab/ci/artifacts/metrics.rb', line 13

def increment_destroyed_artifacts_bytes(bytes)
  destroyed_artifacts_bytes_counter.increment({}, bytes)
end

#increment_destroyed_artifacts_count(size) ⇒ Object


9
10
11
# File 'lib/gitlab/ci/artifacts/metrics.rb', line 9

def increment_destroyed_artifacts_count(size)
  destroyed_artifacts_counter.increment({}, size.to_i)
end