-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add ping endpoint #140
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
Conversation
contracts/cloud.yml
Outdated
get: | ||
operationId: PostPing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a post
or get
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be GetPing
... fixed
src/common/paths/ping.yml
Outdated
@@ -0,0 +1,30 @@ | |||
get: | |||
operationId: PostPing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make these operationId
s unique?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
description: The type of InfluxDB build. | ||
X-Influxdb-Version: | ||
schema: | ||
type: integer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is actually a float, small enough nit i'll merge this
The users of our client libraries (
java
,python
,ruby
, ...) wants to do three things with our libraries:query
,write
and check the status of InfluxDB.The query and writes are fine, but the checking status by
/health
endpoint brings trouble because the mapping is different foross
andcloud
version. For more info see - influxdata/influxdb#19357As a solution this PR expose the
/ping
endpoint which works correctly in OSS and also in Cloud.