The system.statistics.object.count.per-volume
command counts and reports numbers of physical objects in each volume.
See also ‘system.statistics.object.count’.
(Document Root)/droonga/system/statistics/object/count/per-volume
GET
Not supported.
type
of the requestsystem.statistics.object.count.per-volume
body
of the requesttype
of the responsesystem.statistics.object.count.per-volume.result
{
"output": [
"tables",
"columns",
"records"
]
}
or
{
"output": [
"total"
]
}
This command counts and reports the physical numbers of specified targets. For example:
{
"type" : "system.statistics.object.count.per-volume",
"body" : {
"output": [
"tables",
"columns",
"records",
"total"
]
}
}
=> {
"type" : "system.statistics.object.count.per-volume.result",
"body" : {
"node0:10031/droonga.000": {
"tables": 1,
"columns": 0,
"records": 1,
"total": 2
},
"node0:10031/droonga.001": {
"tables": 1,
"columns": 0,
"records": 1,
"total": 2
}
}
}
All parameters are optional.
output
tables
columns
records
total
[]
This returns a hash like following as the response’s body
, with 200
as its statusCode
.
{
"<Identifier of the volume 1>": {
"tables": <The total number of tables>,
"columns": <The total number of columns>,
"records": <The total number of records>,
"total": <The total number of all objects>
},
"<Identifier of the volume 2>": { ... },
...
}
tables
columns
records
total
tables
, columns
, and records
.
If you just want to know the total number of all objects, this is faster than separate targets.This command reports general errors.