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

13 lines
430 B
Ruby
Raw Normal View History

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