Add StartedAt and FinishedAt fields to arvados.Container.
authorTom Clegg <tom@tomclegg.ca>
Fri, 1 May 2020 19:58:58 +0000 (15:58 -0400)
committerTom Clegg <tom@tomclegg.ca>
Fri, 1 May 2020 19:58:58 +0000 (15:58 -0400)
No issue #

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

sdk/go/arvados/container.go

index a7edddaa337137fe4c0dc87b3acb9db3fdaf7194..a7edec76dc3c2f77bae447d24585927469c89c77 100644 (file)
@@ -28,6 +28,8 @@ type Container struct {
        SchedulingParameters SchedulingParameters   `json:"scheduling_parameters"`
        ExitCode             int                    `json:"exit_code"`
        RuntimeStatus        map[string]interface{} `json:"runtime_status"`
+       StartedAt            *time.Time             `json:"started_at"`  // nil if not yet started
+       FinishedAt           *time.Time             `json:"finished_at"` // nil if not yet finished
 }
 
 // Container is an arvados#container resource.