BigW Consortium Gitlab

health_check_controller.rb 430 Bytes
Newer Older
1 2
class Admin::HealthCheckController < Admin::ApplicationController
  def show
3
    @errors = HealthCheck::Utils.process_checks(['standard'])
4 5 6 7
    @failing_storage_statuses = Gitlab::Git::Storage::Health.for_failing_storages
  end

  def reset_storage_health
8
    Gitlab::Git::Storage::FailureInfo.reset_all!
9 10
    redirect_to admin_health_check_path,
                notice: _('Git storage health information has been reset')
11 12
  end
end