Commit Graph

5 Commits (b524b4411e3a7c60e0e3771e62a8fd497a973d16)

Author SHA1 Message Date
Aakash Hemadri f3ce84d67c
fix: setup.rs example
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-03-23 23:02:53 +05:30
Aakash Hemadri c876c18961
feat: Add support for setup API to influxdb_client
- Check if database has default user, org, bucket
- Set up initial user, org and bucket
- Set up a new user, org and bucket

- Add examples and test
- Add necessary models

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-03-17 10:12:09 +05:30
Aakash Hemadri 9c112b9872
feat: Add support for ready API to influxdb_client (#999)
Get the readiness of an instance at startup

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-16 13:06:20 +00:00
Carol (Nichols || Goulding) 4ab8597f50 fix: Clarify what takes org/bucket names and what takes IDs
Connects to influxdata/fusion#60

As far as I can tell, `/api/v2/write` uses `org` and `bucket` params
that can take org and bucket names, so just call those `org` and
`bucket` throughout and clarify in examples they can be any string.

However, `/api/v2/buckets` uses only `orgID` that must be the
organization's 16-digit hex ID, so clarify that case.

This means in examples where we create a bucket and push points into it,
we'll need both a hex ID and name for the organization.
2020-09-02 16:32:24 -04:00
Carol (Nichols || Goulding) 6223cbdc99 feat: Add an authorization token to all client requests
Connects to influxdata/fusion#59. Delorean currently ignores this
header.

Also add an example of using this to connect to an InfluxDB 2 instance;
I tested this out with a locally running Influx DB 2 and I was able to
write points!
2020-09-02 10:33:45 -04:00