Skip to content

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

Merged
merged 2 commits into from
Jul 9, 2021
Merged

Conversation

bednar
Copy link
Contributor

@bednar bednar commented Jun 21, 2021

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 for oss and cloud version. For more info see - influxdata/influxdb#19357

As a solution this PR expose the /ping endpoint which works correctly in OSS and also in Cloud.

Comment on lines 61 to 62
get:
operationId: PostPing
Copy link
Contributor

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?

Copy link
Contributor Author

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

@@ -0,0 +1,30 @@
get:
operationId: PostPing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make these operationIds unique?

Copy link
Contributor Author

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
Copy link
Contributor

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

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.

3 participants