Cat: Add descs for rest of actions.

This commit is contained in:
Andrew Raines 2013-12-05 10:44:26 -06:00
parent aec2b95401
commit 53be1fe9d0
7 changed files with 45 additions and 45 deletions

View File

@ -112,12 +112,12 @@ public class RestAllocationAction extends AbstractCatAction {
Table getTableWithHeader(final RestRequest request) {
final Table table = new Table();
table.startHeaders();
table.addCell("shards", "text-align:right;");
table.addCell("diskUsed", "text-align:right;");
table.addCell("diskAvail", "text-align:right;");
table.addCell("diskRatio", "text-align:right;");
table.addCell("ip");
table.addCell("node");
table.addCell("shards", "text-align:right;desc:number of shards on node");
table.addCell("diskUsed", "text-align:right;desc:disk used (total, not just ES)");
table.addCell("diskAvail", "text-align:right;desc:disk available");
table.addCell("diskRatio", "text-align:right;desc:percent disk used");
table.addCell("ip", "desc:ip of node");
table.addCell("node", "desc:name of node");
table.endHeaders();
return table;
}

View File

@ -83,15 +83,15 @@ public class RestHealthAction extends AbstractCatAction {
t = new Table();
}
t.startHeaders();
t.addCell("cluster");
t.addCell("status");
t.addCell("nodeTotal", "text-align:right;");
t.addCell("nodeData", "text-align:right;");
t.addCell("shards", "text-align:right;");
t.addCell("pri", "text-align:right;");
t.addCell("relo", "text-align:right;");
t.addCell("init", "text-align:right;");
t.addCell("unassign", "text-align:right;");
t.addCell("cluster", "desc:cluster name");
t.addCell("status", "desc:health status");
t.addCell("nodeTotal", "text-align:right;desc:total number of nodes");
t.addCell("nodeData", "text-align:right;desc:number of nodes that can store data");
t.addCell("shards", "text-align:right;desc:total number of shards");
t.addCell("pri", "text-align:right;desc:number of primary shards");
t.addCell("relo", "text-align:right;desc:number of relocating nodes");
t.addCell("init", "text-align:right;desc:number of initializing nodes");
t.addCell("unassign", "text-align:right;desc:number of unassigned shards");
t.endHeaders();
return t;

View File

@ -125,14 +125,14 @@ public class RestIndicesAction extends AbstractCatAction {
Table getTableWithHeader(final RestRequest request) {
Table table = new Table();
table.startHeaders();
table.addCell("health");
table.addCell("index");
table.addCell("pri", "text-align:right;");
table.addCell("rep", "text-align:right;");
table.addCell("docs", "text-align:right;");
table.addCell("docs/del", "text-align:right;");
table.addCell("size/pri", "text-align:right;");
table.addCell("size/total", "text-align:right;");
table.addCell("health", "desc:current health status");
table.addCell("index", "desc:index name");
table.addCell("pri", "text-align:right;desc:number of primary shards");
table.addCell("rep", "text-align:right;desc:number of replica shards");
table.addCell("docs", "text-align:right;desc:available docs");
table.addCell("docs/del", "text-align:right;desc:deleted docs");
table.addCell("size/pri", "text-align:right;desc:store size of primaries");
table.addCell("size/total", "text-align:right;desc:store size of primaries & replicas");
table.endHeaders();
return table;
}

View File

@ -79,9 +79,9 @@ public class RestMasterAction extends AbstractCatAction {
Table getTableWithHeader(final RestRequest request) {
Table table = new Table();
table.startHeaders()
.addCell("id")
.addCell("ip")
.addCell("node")
.addCell("id", "desc:node id")
.addCell("ip", "desc:node transport ip address ")
.addCell("node", "desc:node name")
.endHeaders();
return table;
}

View File

@ -75,10 +75,10 @@ public class RestPendingClusterTasksAction extends AbstractCatAction {
Table getTableWithHeader(final RestRequest request) {
Table t = new Table();
t.startHeaders();
t.addCell("insertOrder", "text-align:right;desc:Task insertion order");
t.addCell("timeInQueue", "text-align:right;desc:How long task has been in queue");
t.addCell("priority", "desc:Task priority");
t.addCell("source", "desc:Task source");
t.addCell("insertOrder", "text-align:right;desc:task insertion order");
t.addCell("timeInQueue", "text-align:right;desc:how long task has been in queue");
t.addCell("priority", "desc:task priority");
t.addCell("source", "desc:task source");
t.endHeaders();
return t;
}

View File

@ -132,13 +132,13 @@ public class RestRecoveryAction extends AbstractCatAction {
@Override
Table getTableWithHeader(RestRequest request) {
Table t = new Table();
t.startHeaders().addCell("index")
.addCell("shard")
.addCell("target", "text-align:right;")
.addCell("recovered", "text-align:right;")
.addCell("%", "text-align:right;")
.addCell("ip")
.addCell("node")
t.startHeaders().addCell("index", "desc:index name")
.addCell("shard", "desc:shard name")
.addCell("target", "text-align:right;desc:bytes of source shard")
.addCell("recovered", "text-align:right;desc:bytes recovered so far")
.addCell("%", "text-align:right;desc:percent recovered so far")
.addCell("ip", "desc:node ip where source shard lives")
.addCell("node", "desc:node name where source shard lives")
.endHeaders();
return t;
}

View File

@ -105,14 +105,14 @@ public class RestShardsAction extends AbstractCatAction {
Table getTableWithHeader(final RestRequest request) {
Table table = new Table();
table.startHeaders()
.addCell("index", "default:true;")
.addCell("shard", "default:true;")
.addCell("p/r", "default:true;")
.addCell("state", "default:true;")
.addCell("docs", "text-align:right;")
.addCell("store", "text-align:right;")
.addCell("ip", "default:true;")
.addCell("node", "default:true;")
.addCell("index", "default:true;desc:index name")
.addCell("shard", "default:true;desc:shard name")
.addCell("p/r", "default:true;desc:primary or replica")
.addCell("state", "default:true;desc:shard state")
.addCell("docs", "text-align:right;desc:number of docs in shard")
.addCell("store", "text-align:right;desc:store size of shard (how much disk it uses)")
.addCell("ip", "default:true;desc:ip of node where it lives")
.addCell("node", "default:true;desc:name of node where it lives")
.endHeaders();
return table;
}