adding 'restart_time' information about a process in ping endpoint if LOG_LEVEL=DEBUG

This commit is contained in:
Julien Neuhart
2019-08-21 15:28:34 +02:00
parent 14ef3cf07c
commit a1b34d5e7b
3 changed files with 14 additions and 9 deletions

View File

@@ -41,7 +41,8 @@ of the command "pm2 jlist".
type JListItem struct {
Name string `json:"name"`
PM2Env struct {
Status string `json:"status"`
Status string `json:"status"`
RestartTime int64 `json:"restart_time"`
} `json:"pm2_env"`
Monit struct {
Memory int64 `json:"memory"`