[SPEC] Created snapshot.* and nodes.* namespaces

Moved node_info, node_stats, shutdown and hot_threads into nodes.*
Moved snapshot and repository APIs into snapshot.*
This commit is contained in:
Clinton Gormley 2014-01-16 19:48:14 +01:00
parent 38874e5f9b
commit 53359c0d3d
13 changed files with 14 additions and 14 deletions

View File

@ -1,9 +1,9 @@
{
"cluster.node_hot_threads": {
"nodes.hot_threads": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html",
"methods": ["GET"],
"url": {
"path": "/_cluster/nodes/hot_threads",
"path": "/_nodes/hot_threads",
"paths": ["/_cluster/nodes/hotthreads", "/_cluster/nodes/hot_threads", "/_cluster/nodes/{node_id}/hotthreads", "/_cluster/nodes/{node_id}/hot_threads", "/_nodes/hotthreads", "/_nodes/hot_threads", "/_nodes/{node_id}/hotthreads", "/_nodes/{node_id}/hot_threads"],
"parts": {
"node_id": {

View File

@ -1,5 +1,5 @@
{
"cluster.node_info": {
"nodes.info": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-info.html",
"methods": ["GET"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.node_shutdown": {
"nodes.shutdown": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html",
"methods": ["POST"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.node_stats": {
"nodes.stats": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html",
"methods": ["GET"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.create_snapshot": {
"snapshot.create": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["PUT", "POST"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.create_repository": {
"snapshot.create_repository": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["PUT", "POST"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.delete_snapshot": {
"snapshot.delete": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["DELETE"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.delete_repository": {
"snapshot.delete_repository": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["DELETE"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.get_snapshot": {
"snapshot.get": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["GET"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.get_repository": {
"snapshot.get_repository": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["GET"],
"url": {

View File

@ -1,5 +1,5 @@
{
"cluster.restore_snapshot": {
"snapshot.restore": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"methods": ["POST"],
"url": {

View File

@ -1,7 +1,7 @@
---
"node_info test":
- do:
cluster.node_info: {}
nodes.info: {}
- is_true: nodes
- is_true: cluster_name

View File

@ -1,7 +1,7 @@
---
"Nodes stats":
- do:
cluster.node_stats:
nodes.stats:
metric: [ indices, transport ]
- is_true: cluster_name