diff options
Diffstat (limited to 'calls.py')
-rw-r--r-- | calls.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -75,6 +75,16 @@ class EjabberdApiCalls(EjabberdApi): return result return result["s2s_outgoing"] + def fetch_uptime(self): + result = self.cmd("stats", {"name": "uptimeseconds"}) + if "stat" in result: + return result["stat"] + + def fetch_processes(self): + result = self.cmd("stats", {"name": "processes"}) + if "stat" in result: + return result["stat"] + def fetch_registered_count(self, vhost=None): if vhost is None: result = self.cmd("stats", {"name": "registeredusers"}) |