gitlab-org--gitlab-foss/app/controllers/admin/health_check_controller.rb

13 lines
433 B
Ruby
Raw Normal View History

class Admin::HealthCheckController < Admin::ApplicationController
def show
2017-03-03 13:44:08 -05:00
@errors = HealthCheck::Utils.process_checks(['standard'])
2017-05-17 12:17:15 -04:00
@failing_storage_statuses = Gitlab::Git::Storage::Health.for_failing_storages
end
def reset_storage_health
Gitlab::Git::Storage::CircuitBreaker.reset_all!
redirect_to admin_health_check_path,
notice: _('Git storage health information has been reset')
end
end