mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
datastoreusage returns the total_bytes that are stored under a given {Key} or from root. {Key} is the entry point from which we begin to traverse the datastore. Changelog-Added: JSON-RPC: `datastoreusage`: returns the total bytes that are stored under a given key. Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
28 lines
702 B
JSON
28 lines
702 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"datastoreusage"
|
|
],
|
|
"properties": {
|
|
"datastoreusage": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"key",
|
|
"total_bytes"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"description": "The key from which the database was traversed."
|
|
},
|
|
"total_bytes": {
|
|
"type": "u64",
|
|
"description": "The total bytes that are stored under the *key*, including the all descendants data and the size of the keys themselves."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|