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

Add overall 'score' to HostCheck response type #1527

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

ChrisSchinnerl
Copy link
Member

@ChrisSchinnerl ChrisSchinnerl commented Sep 12, 2024

The type doesn't really need the score since it can be computed from the other fields so I added a custom marshaling function which attaches it for more convenience. That way consumers of the API get an overall score without having to worry about computing it themselves.

Related to #1512 (comment)

@ChrisSchinnerl ChrisSchinnerl marked this pull request as ready for review September 12, 2024 12:55
@ChrisSchinnerl ChrisSchinnerl merged commit 61ab464 into api-breakers Sep 16, 2024
7 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/host-check-json branch September 16, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants