Class: Weaviate::Health
- Defined in:
- lib/weaviate/health.rb,
sig/weaviate.rbs
Constant Summary collapse
- PATH =
".well-known"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#live? ⇒ Boolean
Whether Weaviate is alive.
-
#ready? ⇒ Boolean
Whether Weaviate is ready to receive traffic.
Methods inherited from Base
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.
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.
14 15 16 |
# File 'lib/weaviate/health.rb', line 14 def ready? check("#{PATH}/ready") end |