diff --git a/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go b/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go index e26c7bb9bd9..542cfb7ed81 100644 --- a/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go +++ b/agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,10 +57,9 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` - Snapshotter string `json:"Snapshotter,omitempty"` - RestartCount int `json:"RestartCount,omitempty"` - LastRestartAt time.Time `json:"LastRestartAt,omitempty"` + Networks []Network `json:"Networks,omitempty"` + Snapshotter string `json:"Snapshotter,omitempty"` + RestartCount *int `json:"RestartCount,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network diff --git a/ecs-agent/tmds/handlers/v4/state/response.go b/ecs-agent/tmds/handlers/v4/state/response.go index e26c7bb9bd9..542cfb7ed81 100644 --- a/ecs-agent/tmds/handlers/v4/state/response.go +++ b/ecs-agent/tmds/handlers/v4/state/response.go @@ -57,10 +57,9 @@ type EphemeralStorageMetrics struct { // with the v2 container response object. type ContainerResponse struct { *v2.ContainerResponse - Networks []Network `json:"Networks,omitempty"` - Snapshotter string `json:"Snapshotter,omitempty"` - RestartCount int `json:"RestartCount,omitempty"` - LastRestartAt time.Time `json:"LastRestartAt,omitempty"` + Networks []Network `json:"Networks,omitempty"` + Snapshotter string `json:"Snapshotter,omitempty"` + RestartCount *int `json:"RestartCount,omitempty"` } // Network is the v4 Network response. It adds a bunch of information about network