Add /health endpoint that returns last_process timestamp, fix issue #6009
This commit is contained in:
@@ -1030,3 +1030,8 @@ class RPC:
|
||||
"cpu_pct": psutil.cpu_percent(interval=1, percpu=True),
|
||||
"ram_pct": psutil.virtual_memory().percent
|
||||
}
|
||||
|
||||
def _health(self) -> Dict[str, str]:
|
||||
return {
|
||||
'last_process': str(self._freqtrade.last_process)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user