[JAY-724] Add cluster health interface#66
Open
sergio-bobillier wants to merge 3 commits intomasterfrom
Open
Conversation
added 3 commits
April 14, 2026 17:09
The class gives the user access to cluster-related information and statistics. For the moment the class has a single method: #health, which returns the health statistics of the cluster.
The method returns an instance of the Elasticsearch::Cluster class, which provides the caller with an interface to retrieve cluster-related information and statistics.
Documents the the method and its return type, including the methods offered by the returned object.
sheputis
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces cluster-level Elasticsearch access in
jay_apiby adding a newJayAPI::Elasticsearch::Clusterclass and exposing it throughJayAPI::Elasticsearch::Client#cluster.What’s included
JayAPI::Elasticsearch::Cluster:#health, delegating to the transport client’s cluster client.JayAPI::Elasticsearch::Client:#clustermethod.JayAPI::Elasticsearch::Clusterinstance initialized with the existing transport client.Cluster#healthdelegation and return behavior.Client#clusterinitialization and return value.Clusterclass andClient#cluster.Why
This provides a clear and extensible entry point for cluster-related Elasticsearch endpoints while keeping the client API consistent and easy to discover.
Backward compatibility
No breaking changes. This PR is additive only.