Class: Snails::HealthController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Snails::HealthController
- Defined in:
- runtime/snails/health_controller.rb,
runtime/snails/health_controller.rbs
Overview
Liveness probe — show answers 200 with a JSON status body. The app
is API-only, so the health response is JSON like every other route
(no HTML page): a monitor reading the body gets a stable shape, and a
probe that only checks the status code is served by the 200 itself.
Constant Summary
Constants inherited from ActionController::API
ActionController::API::BEFORE_FILTERS
Instance Attribute Summary
Attributes inherited from ActionController::API
#accepts_any_format, #action_name, #body, #cache_control_max_age, #cache_control_public, #content_type, #location, #path_parameters, #request, #request_format, #request_method, #request_path, #status
Instance Method Summary collapse
-
#show ⇒ void
the liveness answer; the route table calls it as
:show.
Methods inherited from ActionController::API
#authenticate_or_request_with_http_basic, #authenticate_or_request_with_http_token, #authenticate_with_http_basic, #authenticate_with_http_token, before_action, #expires_in, #fresh_when, #head, #headers, #initialize, #params, #params=, #performed?, #process_action, #redirect_to, #render, #request_http_basic_authentication, #request_http_token_authentication, #resolve_status, #response, #run_before_filters, #send_action, #send_data, #stale?
Constructor Details
This class inherits a constructor from ActionController::API
Instance Method Details
#show ⇒ void
the liveness answer; the route table calls it as :show.
13 |
# File 'runtime/snails/health_controller.rb', line 13
def show: () -> void
|