此篇内容尚无原站英文对应版本;切换语言后可浏览英文资料库。
该
一个成功回应的例子:
对于大多数其他条目,该值指示当前在内存中的那种类型的对象的数量。
可能的错误:
get_counts命令提供有关服务器运行状况的各种统计信息,主要是当前在内存中保存的不同类型的对象数量。
该get_counts方法是不能由非特权用户运行的管理员命令。
请求格式的示例:
{
"id": 90,
"command": "get_counts",
"min_count": 100
}
{
"method": "get_counts",
"params": [
{
"min_count": 100
}
]
}
#Syntax: get_counts [min_count] streamd get_counts 100该请求包含以下参数:
Field |
类型 | 描述 |
|---|---|---|
min_count |
Number (Unsigned Integer) | 只返回值至少为最高的字段。 |
{
"result" : {
"AL_hit_rate" : 48.36725616455078,
"HashRouterEntry" : 3048,
"Ledger" : 46,
"NodeObject" : 10417,
"SLE_hit_rate" : 64.62035369873047,
"STArray" : 1299,
"STLedgerEntry" : 646,
"STObject" : 6987,
"STTx" : 4104,
"STValidation" : 610,
"Transaction" : 4069,
"dbKBLedger" : 10733,
"dbKBTotal" : 39069,
"dbKBTransaction" : 26982,
"fullbelow_size" : 0,
"historical_perminute" : 0,
"ledger_hit_rate" : 71.0565185546875,
"node_hit_rate" : 3.808214902877808,
"node_read_bytes" : 393611911,
"node_reads_hit" : 1283098,
"node_reads_total" : 679410,
"node_writes" : 1744285,
"node_written_bytes" : 794368909,
"status" : "success",
"treenode_cache_size" : 6650,
"treenode_track_size" : 598631,
"uptime" : "3 hours, 50 minutes, 27 seconds",
"write_load" : 0
}
}
Loading: "/etc/streamd.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"AL_hit_rate" : 48.36725616455078,
"HashRouterEntry" : 3048,
"Ledger" : 46,
"NodeObject" : 10417,
"SLE_hit_rate" : 64.62035369873047,
"STArray" : 1299,
"STLedgerEntry" : 646,
"STObject" : 6987,
"STTx" : 4104,
"STValidation" : 610,
"Transaction" : 4069,
"dbKBLedger" : 10733,
"dbKBTotal" : 39069,
"dbKBTransaction" : 26982,
"fullbelow_size" : 0,
"historical_perminute" : 0,
"ledger_hit_rate" : 71.0565185546875,
"node_hit_rate" : 3.808214902877808,
"node_read_bytes" : 393611911,
"node_reads_hit" : 1283098,
"node_reads_total" : 679410,
"node_writes" : 1744285,
"node_written_bytes" : 794368909,
"status" : "success",
"treenode_cache_size" : 6650,
"treenode_track_size" : 598631,
"uptime" : "3 hours, 50 minutes, 27 seconds",
"write_load" : 0
}
}
响应遵循标准格式。结果中包含的字段列表如有更改,恕不另行通知,但可能包含以下任何内容(除其他外):
Field |
类型 | 描述 |
|---|---|---|
Transaction |
Number | Transaction内存中的对象数量 |
Ledger |
Number | 记忆中的分类账数量 |
uptime |
String | 这台服务器一直运行的时间不间断。 |
- 任何通用错误类型。
invalidParams- 一个或多个字段指定不正确,或缺少一个或多个必填字段。
