Add CPU,RAM sysinfo support to the REST API to help with bot system monitoring
This commit is contained in:
@@ -334,6 +334,12 @@ 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()
|
||||
|
Reference in New Issue
Block a user