Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #3923
Adds
/v1/ping
that always returns{ "status": "ok" }
if it returns anything at all. I went withping
over the initial/v1/system/health
because the latter is vague about its meaning, whereas everyone know ping means a trivial request and response. I also thought it was weird to put an endpoint with no auth check under/v1/system
, where ~all the other endpoints require fleet-level perms.This doesn't add too much over hitting an existing endpoint, but I think it's worth it because
Questions that occurred to me while working through this:
system
tag because a) this doesn't fit under existingsystem/blah
tags and b) it really does feel miscellaneoussystem/status
, with the idea that if we add other kinds of checks, they would be new endpoints under this tag.