Skip to content

Commit

Permalink
add cluster name to cluster health response
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Oct 17, 2010
1 parent 5d54e36 commit 648da2e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -84,6 +84,7 @@ public class RestClusterHealthAction extends BaseRestHandler {
XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
builder.startObject();

builder.field("cluster_name", response.clusterName());
builder.field("status", response.status().name().toLowerCase());
builder.field("timed_out", response.timedOut());
builder.field("number_of_nodes", response.numberOfNodes());
Expand Down

0 comments on commit 648da2e

Please sign in to comment.