Skip to content

Commit

Permalink
Update TMDS response for restart tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
timj-hh committed May 14, 2024
1 parent e45076b commit 99614a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions ecs-agent/tmds/handlers/v4/state/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99614a2

Please sign in to comment.