Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
add the cluster health API request params to KB
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Nov 2, 2015
1 parent 09216ea commit 6178ce6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion api_server/es_1_0/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ module.exports = function (api) {
});
api.addEndpointDescription('_cluster/health', {
url_params: {
"level": ["indices", "shards"]
"local": "__flag__",
"level": ["indices", "shards"],
"master_timeout": "30s",
"timeout": "30s",
"wait_for_status": ["yellow", "green"],
"wait_for_relocating_shards": 0,
"wait_for_active_shards": 0,
"wait_for_nodes": 0
}
});
api.addEndpointDescription('_cluster/pending_tasks');
Expand Down
9 changes: 8 additions & 1 deletion api_server/es_2_0/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ module.exports = function (api) {
});
api.addEndpointDescription('_cluster/health', {
url_params: {
"level": ["indices", "shards"]
"local": "__flag__",
"level": ["indices", "shards"],
"master_timeout": "30s",
"timeout": "30s",
"wait_for_status": ["yellow", "green"],
"wait_for_relocating_shards": 0,
"wait_for_active_shards": 0,
"wait_for_nodes": 0
}
});
api.addEndpointDescription('_cluster/pending_tasks');
Expand Down

0 comments on commit 6178ce6

Please sign in to comment.