Module: Gitlab::HealthChecks::BaseAbstractCheck

Included in:
GitalyCheck, SimpleAbstractCheck
Defined in:
lib/gitlab/health_checks/base_abstract_check.rb

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)

14
15
16
# File 'lib/gitlab/health_checks/base_abstract_check.rb', line 14

def available?
  true
end

#human_nameObject


10
11
12
# File 'lib/gitlab/health_checks/base_abstract_check.rb', line 10

def human_name
  name.sub(/_check$/, '').capitalize
end

#metricsObject


22
23
24
# File 'lib/gitlab/health_checks/base_abstract_check.rb', line 22

def metrics
  []
end

#nameObject


6
7
8
# File 'lib/gitlab/health_checks/base_abstract_check.rb', line 6

def name
  super.demodulize.underscore
end

#readinessObject

Raises:

  • (NotImplementedError)

18
19
20
# File 'lib/gitlab/health_checks/base_abstract_check.rb', line 18

def readiness
  raise NotImplementedError
end