add cluster name to cluster health response

This commit is contained in:
kimchy 2010-10-17 18:58:59 +02:00
parent 5d54e36964
commit 648da2e6ff
1 changed files with 1 additions and 0 deletions

View File

@ -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());