Show capabilities in API server stats (stats.py)
This commit is contained in:
parent
9a0b8f3d00
commit
dc0a021231
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
"bytes-written": server.bytes_written,
|
"bytes-written": server.bytes_written,
|
||||||
"bytes-read": server.bytes_read,
|
"bytes-read": server.bytes_read,
|
||||||
"channels": {
|
"channels": {
|
||||||
c.name: self._channel_stats(c) for c in server.channels}
|
c.name: self._channel_stats(c) for c in server.channels
|
||||||
|
},
|
||||||
|
"capabilities": list(server.capabilities)
|
||||||
}
|
}
|
||||||
|
|
||||||
@utils.hook("api.get.servers")
|
@utils.hook("api.get.servers")
|
||||||
|
|
Loading…
Reference in a new issue