此篇内容尚无原站英文对应版本;切换语言后可浏览英文资料库。
该
print命令返回各种内部子系统的当前状态,包括同级,分类清理器和资源管理器。
该print请求是一个不能由非特权用户运行的管理命令!
请求格式的示例:
{
"id": "print_req_1",
"command": "print"
}
streamd print该请求不包含参数。 一个成功回应的例子:
Loading: "/etc/streamd.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"app" : {
"ledgercleaner" : {
"status" : "idle"
},
"peers" : {
"peerfinder" : {
"bootcache" : {
"entries" : 109
},
"config" : {
"auto_connect" : "true",
"features" : "",
"max_peers" : 21,
"out_peers" : 10,
"port" : 51235,
"want_incoming" : "true"
},
"counts" : {
"accept" : 0,
"close" : 0,
"cluster" : "0",
"connect" : 0,
"fixed" : "0",
"in" : "0/11",
"out" : "10/10",
"total" : "10"
},
"fixed" : 0,
"livecache" : {
"entries" : [
{
"address" : "1.1.1.1:51235",
"expires" : "30000000000 nanoseconds",
"hops" : 2
}
],
"hist" : "0, 10, 74, 10, 0, 0, 0, 0",
"size" : "94"
},
"peers" : [
{
"local_address" : "10.1.10.78:48923",
"remote_address" : "2.2.2.3:51235",
"state" : "active"
}
]
}
},
"resource" : {
"admin" : [
{
"balance" : 0,
"count" : 1,
"name" : ""127.0.0.1""
}
],
"inactive" : [],
"inbound" : [],
"outbound" : [
{
"balance" : 23,
"count" : 1,
"name" : "1.1.1.1:51235"
}
]
},
"server" : {
"active" : "2",
"hist" : "16",
"history" : [
{
"bytes_in" : "214",
"bytes_out" : "11688",
"elapsed" : "0 seconds",
"id" : "16",
"requests" : 1,
"when" : "2017-Jun-16 16:33:50"
}
]
},
"validators" : {}
},
"status" : "success"
}
}
响应遵循标准格式。结果中的其他字段取决于streamd服务器的内部状态。此命令的结果如有更改,恕不另行通知。
可能的错误:
- 任何通用错误类型。
