OLAP REST Commands : Shard Management Commands : Get Shard Statistics

Get Shard Statistics
Statistics for a specific shard can be retrieved with any of the following REST commands:
GET /{application}/_shards/{shard}
GET /{application}/_statistics/{shard}
GET /{application}/_statistics/{shard}?{params}
Statistics will be available for the given {shard} only if at least one batch has been loaded for it and the shard has been merged. The first command shown returns general information for each table and field. A typical response in XML is shown:
<stats memory="0.984 MB" storage="1.654 MB" documents="28455">
<tables>
<table documents="370" memory="0.010 MB" name="Domain">
<numFields>
<field type="BOOLEAN" min="0" max="1" min_pos="1" bits="1" memory="0.000 MB" name="IsInternal"/>
</numFields>
<textFields>
<field valuesCount="370" doclistSize="370" isSingleValued="true" memory="0.001 MB" name="Name"/>
</textFields>
<linkFields>
<field linkedTableName="Address" inverseLink="Domain" doclistSize="1884" isSingleValued="false" memory="0.009 MB" name="Addresses"/>
</linkFields>
</table>
<table documents="6030" memory="0.272 MB" name="Message">
...
</table>
...
</tables>
</stats>
In JSON:
{"stats": {
"memory": "0.984 MB",
"storage": "1.654 MB",
"documents": "28455",
"tables": {
"Domain": {
"documents": "370",
"memory": "0.010 MB",
"numFields": {
"IsInternal": {"type": "BOOLEAN", "min": "0", "max": "1", "min_pos": "1", "bits": "1", "memory": "0.000 MB"}
},
"textFields": {
"Name": {"valuesCount": "370", "doclistSize": "370", "isSingleValued": "true", "memory": "0.001 MB"}
},
"linkFields": {
"Addresses": {"linkedTableName": "Address", "inverseLink": "Domain", "doclistSize": "1884", "isSingleValued": "false", "memory":"0.009 MB"}
}
},
"Message": {
...
},
...
}
}}
The command response provides statistics about data contained in the given shard such as the total number of objects, the number of objects per table, the name value range of scalar fields, and so forth.
The second shard statistics command returns more similar information as the first command plus additional details about the virtual files (segments) stored within the shard. The third statistics command dumps the contents of a specific virtual file. These commands are intended for debugging purposes.