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 stacks and template APIs. #396

Closed
DriesSchaumont opened this issue Jan 20, 2022 · 5 comments · Fixed by #399
Closed

Add stacks and template APIs. #396

DriesSchaumont opened this issue Jan 20, 2022 · 5 comments · Fixed by #399
Labels
enhancement New feature or request
Milestone

Comments

@DriesSchaumont
Copy link

DriesSchaumont commented Jan 20, 2022

Proposal:
First of all, thanks for creating this library!
I am looking for a way to manage stacks and templates. However, they seem to be missing from this library.
They seem to be available in the OSS api specification, though: https://github.com/influxdata/openapi/blob/master/contracts/oss.yml
Would it be possible to add these APIs to this library?

Current behavior:
Stacks and template specifications are currently not being generated in this library.

Desired behavior:
I would like to

Alternatives considered:
The workaround atm is to directly call the API directly.

Use case:
I want to create an manage templates and stacks using python.

@DriesSchaumont DriesSchaumont changed the title Add Tasks and template APIs. Add stacks and template APIs. Jan 20, 2022
@bednar
Copy link
Contributor

bednar commented Jan 21, 2022

Hi @DriesSchaumont,

thanks for using our client.

Would it be possible to add these APIs to this library?

Yes, we can add these APIs into library.

Can you describe your use case little bit more? It will be helpful to us to be sure that we covers your requirements.

Regards

@bednar bednar added the enhancement New feature or request label Jan 21, 2022
@DriesSchaumont
Copy link
Author

Sure! I am creating a webserver application for reading serial data for a specific sensor. The data is parsed and verified (checksum), before being written to influxdb. I would like to minimize the impact of potentials bugs on the database by using a template for the ingested data. Also, I would like to be able check that such a template exists on application startup, and update/create it if necessary.

@bednar
Copy link
Contributor

bednar commented Jan 24, 2022

@DriesSchaumont thanks for detail info. One more question... What will be a source of the template? Is it community template or do you want to use yours own template?

@bednar
Copy link
Contributor

bednar commented Jan 27, 2022

@DriesSchaumont

I've prepared PR #399 with possibility to use Stacks and Templates API. If you would like to use dev version of client then install client via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@open_api_update

Here is an example for Stacks and Templates API: https://github.com/influxdata/influxdb-client-python/blob/open_api_update/examples/templates_management.py

Regards

@bednar bednar added this to the 1.26.0 milestone Feb 3, 2022
@DriesSchaumont
Copy link
Author

Thank you, greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants