rest_client.py
first
This commit is contained in:
parent
b6641631eb
commit
0dd772e231
@ -182,6 +182,14 @@ class FtRestClient():
|
|||||||
"""
|
"""
|
||||||
return self._get("show_config")
|
return self._get("show_config")
|
||||||
|
|
||||||
|
def ping(self):
|
||||||
|
"""simple ping"""
|
||||||
|
|
||||||
|
if self.show_config()['state']=="running":
|
||||||
|
return {"status": "pong"}
|
||||||
|
else:
|
||||||
|
return{"status": "not_running"}
|
||||||
|
|
||||||
def logs(self, limit=None):
|
def logs(self, limit=None):
|
||||||
"""Show latest logs.
|
"""Show latest logs.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user