Class: HermesAgent::Client::Resources::Health
- Inherits:
-
Object
- Object
- HermesAgent::Client::Resources::Health
- Defined in:
- lib/hermes_agent/client/resources/health.rb
Overview
The health resource. Health endpoints live at the server root, not
under the /v1 prefix.
Instance Method Summary collapse
-
#check ⇒ Entities::Health
Check whether the server is healthy.
-
#detailed ⇒ Entities::HealthDetails
Fetch detailed server health, including gateway state, per-platform connection status, and the active-agent count.
Instance Method Details
#check ⇒ Entities::Health
Check whether the server is healthy.
33 34 35 |
# File 'lib/hermes_agent/client/resources/health.rb', line 33 def check Entities::Health.new(@transport.get("/health")) end |
#detailed ⇒ Entities::HealthDetails
Fetch detailed server health, including gateway state, per-platform connection status, and the active-agent count.
43 44 45 |
# File 'lib/hermes_agent/client/resources/health.rb', line 43 def detailed Entities::HealthDetails.new(@transport.get("/health/detailed")) end |