Add support for stats & code cleanup (#297)

* Add support for stats & code cleanup

* Add more stats

* Move code into own object

* Add to API

* Update API

* Add error handling

* fix lint

* fix block io
This commit is contained in:
Pascal Vizeli
2018-01-07 15:53:54 +01:00
committed by GitHub
parent e992b70f92
commit eebe90bd14
18 changed files with 254 additions and 11 deletions

View File

@@ -596,6 +596,14 @@ class Addon(CoreSysAttributes):
"""
return self.instance.logs()
@check_installed
def stats(self):
"""Return stats of container.
Return a coroutine.
"""
return self.instance.stats()
@check_installed
async def rebuild(self):
"""Performe a rebuild of local build addon."""