Class: HermesAgent::Client::Resources::Health

Inherits:
Object
  • Object
show all
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

Instance Method Details

#checkEntities::Health

Check whether the server is healthy.

Returns:



33
34
35
# File 'lib/hermes_agent/client/resources/health.rb', line 33

def check
  Entities::Health.new(@transport.get("/health"))
end

#detailedEntities::HealthDetails

Fetch detailed server health, including gateway state, per-platform connection status, and the active-agent count.

Returns:



43
44
45
# File 'lib/hermes_agent/client/resources/health.rb', line 43

def detailed
  Entities::HealthDetails.new(@transport.get("/health/detailed"))
end