Merge pull request #5623 from froggleston/rest_sysinfo

Add CPU,RAM sysinfo support to the REST API to help with bot system m…
This commit is contained in:
Matthias
2021-10-09 15:17:21 +02:00
committed by GitHub
6 changed files with 38 additions and 1 deletions

View File

@@ -334,6 +334,13 @@ class FtRestClient():
"timerange": timerange if timerange else '',
})
def sysinfo(self):
"""Provides system information (CPU, RAM usage)
:return: json object
"""
return self._get("sysinfo")
def add_arguments():
parser = argparse.ArgumentParser()