2016-05-09 19:21:22 -04:00
|
|
|
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')
|
2016-05-09 19:21:22 -04:00
|
|
|
end
|
|
|
|
end
|