Class: Weaviate::Health

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

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

Whether Weaviate is alive. Returns false when it responds with an error or cannot be reached.

Returns:

  • (Boolean)


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

def live?
  check("#{PATH}/live")
end

#ready? ⇒ Boolean

Whether Weaviate is ready to receive traffic. Returns false when it responds with an error (e.g. 503 while starting up) or cannot be reached.

Returns:

  • (Boolean)


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

def ready?
  check("#{PATH}/ready")
end