Class: Weaviate::Health

Inherits:
Base
  • Object
show all
Defined in:
lib/weaviate/health.rb

Constant Summary collapse

PATH =
".well-known"

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Weaviate::Base

Instance Method Details

#live?Boolean

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/weaviate/health.rb', line 7

def live?
  response = client.connection.get("#{PATH}/live")
  response.status == 200
end

#ready?Boolean

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/weaviate/health.rb', line 12

def ready?
  response = client.connection.get("#{PATH}/ready")
  response.status == 200
end