Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TMDS response for restart tracker #4178

Merged
merged 1 commit into from
May 15, 2024
Merged

Update TMDS response for restart tracker #4178

merged 1 commit into from
May 15, 2024

Conversation

timj-hh
Copy link
Contributor

@timj-hh timj-hh commented May 14, 2024

Summary

Updating TMDS container level response to make RestartCount an int pointer and remove LastRestartedAt. The latter is a remnant that we no longer need. RestartCount will be omitted from the json response as an int because 0 is the 'null' value for integers. By making it a pointer, the TMDS response will only omit if the count is null.

It was decided earlier to store restartTracker with non-pointer types so these will be left alone, as the code becomes awkward otherwise.

Implementation details

N/A.

Testing

make test

Description for the changelog

Update TMDS response for container restarts

Does this PR include breaking model changes? If so, Have you added transformation functions?
No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@timj-hh timj-hh requested a review from a team as a code owner May 14, 2024 20:26
@timj-hh timj-hh merged commit e3b6cf1 into aws:dev May 15, 2024
40 checks passed
@Yiyuanzzz Yiyuanzzz mentioned this pull request May 28, 2024
jiuchoe4 pushed a commit to saurabhc123/amazon-ecs-agent that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants