Commit Graph

17 Commits (c6a8cd15019547e966ea73b14b1cbf7b93033c2d)

Author SHA1 Message Date
Carol (Nichols || Goulding) 49b8d7690c Merge remote-tracking branch 'origin/main' into feature-health 2021-04-19 13:28:37 -04:00
Aakash Hemadri 4372da2d58
Merge branch 'main' into refactor-influxdb-client 2021-04-16 10:01:42 +05:30
Aakash Hemadri 966b97903c
fix: ci tests & write module
Add write to api/mod.rs
Rename influx2.rs -> write.rs
Fix end_to_end_cases for DataPoint

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-16 09:58:23 +05:30
Aakash Hemadri 95c8538a3a
refactor: Move data_point.rs to models/data_point.rs
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-14 17:04:14 +05:30
jeivardan d9363234d6 feat: Add support for health API to influxdb_client
Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-12 14:35:45 +05:30
Jeivardan af72581658
Merge branch 'main' into feature-label 2021-04-09 03:50:08 +00:00
Aakash Hemadri fcdc5290be
fix: Remove org_id to query API
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-05 20:15:51 +05:30
jeivardan 35223e43e7 fix: Add labels_by_org method
Add get_labels, private method that both labels and labels_by_org share.
Add appropiate tests and example
comment corrections

Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-03 16:08:31 +05:30
Aakash Hemadri f83647c24c
feat: Add support for Query API to influxdb_client
POST /query/ast
GET  /query/suggestions
GET  /query/suggestions/{name}
POST /query/analyze
POST /query

Added required models, tests & examples

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-03-30 20:54:31 +05:30
jeivardan 87502574af fix: Make function names concise and add base path
Replace find_labes with labels
Replace find_labels_by_id with find_labels

Add base_path to test

Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-03-30 17:28:41 +05:30
jeivardan 3cadd0c8d0 Merge branch 'main' into feature-label
Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-03-30 08:07:42 +05:30
jeivardan ba5935f0bd feat: Add support for labels API to influxdb_client
List all Labels
Retrieve a label by ID
Create a Label
Update a Label
Delete a Label

Add examples and test
Add necessary models

Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-03-30 07:39:08 +05:30
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