Make uptime available in the stat output for a container

This commit is contained in:
Dane Everitt
2021-10-03 12:59:03 -07:00
parent 0cfd72e1d1
commit d9ebf693e0
4 changed files with 37 additions and 7 deletions

View File

@@ -104,4 +104,8 @@ type ProcessEnvironment interface {
// handle this itself, but there are some scenarios where it is helpful for the server
// to update the state externally (e.g. starting -> started).
SetState(string)
// Uptime returns the current environment uptime in milliseconds. This is
// the time that has passed since it was last started.
Uptime(ctx context.Context) (int64, error)
}