Commit Graph

104 Commits (e8e50df6925243703898294d371793114815c129)

Author SHA1 Message Date
Carol (Nichols || Goulding) 72aab99951
fix: Remove needless borrow. Thanks clippy! 2022-12-21 14:32:34 -05:00
Rowan Hamilton 7f8d58e21a
fix: add missing content type in headers for `influxdb2_client` (#6021)
* fix: add missing content-type to buckets

* fix: add missing content-type to label

* fix: add missing content-type to setup
2022-11-01 19:35:45 +00:00
Dom Dwyer cd4087e00d style: add no todo!() or dbg!() lints
Some crates had theme, some not - lets be consistent and have the
compiler spot dbg!() and todo!() macro calls - they should never be in
prod code!
2022-09-29 13:10:07 +02:00
Carol (Nichols || Goulding) f7a1937f96
fix: Rename influxdb2_client query to query_raw 2022-09-12 13:14:21 -04:00
Carol (Nichols || Goulding) 0d313a4579
fix: Don't try to parse /api/v2/query response as JSON
It's just plain text afaict.
2022-09-12 13:14:20 -04:00
Carol (Nichols || Goulding) d84b062a69
fix: Improve debugging ability for influxdb2_client (#5533)
* fix: Separate errors to make debugging easier

* feat: Turn on reqwest verbose connection logging for debugging

https://docs.rs/reqwest/latest/reqwest/struct.ClientBuilder.html#method.connection_verbose

> Enabling this option will emit log messages at the TRACE level for read and write operations on connections.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-02 05:09:10 +00:00
Carol (Nichols || Goulding) b982bdaf2f
fix: Derive Eq when we derive PartialEq and members can derive Eq
Allow this in generated code that we don't control, though.

Recommended by clippy now. https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
2022-08-11 15:04:06 -04:00
Carol (Nichols || Goulding) 53a94c4c7b
fix: Don't use clippy::use_self in influxdb2_client due to false positive
See https://github.com/rust-lang/rust-clippy/issues/6902

It's an interaction between clippy and serde; the lint produces
confusing and incorrect warnings.
2022-05-19 15:20:11 -04:00
Andrew Lamb 677a272095
refactor: Clean up some future clippy warnings from nightly (#3892)
* refactor: clean up new clippy lints

* refactor: complete other cleanups

* fix: ignore overzealous clippy

* fix: re-remove old code
2022-03-03 19:14:27 +00:00
Marco Neumann f3f6f335a9
chore: upgrade to snafu 0.7 (#3440) 2022-01-11 19:22:36 +00:00
Marcus Ilgner 7263c80833
feat(influxdb2_client): add FieldValue::U64 (#3374) 2021-12-15 13:50:30 +00:00
Marco Neumann 4bbe756b52 feat: make jaeger-debug-id configurable 2021-12-01 15:02:15 +01:00
Marco Neumann c961454dcd feat: `jaeger-debug-id` from data generator 2021-12-01 14:33:09 +01:00
Dom 3de6b44e23
build: use new rustdoc lint name (#2261)
* fix: nocache feature code rot

The MBChunk::snapshot code when using the "nocache" option no longer
compiles - this commit updates it to match the not(nocache) code.

* build: use updated broken_intra_doc_links name

The broken_intra_doc_links lint was renamed
rustdoc::broken_intra_doc_links

https://doc.rust-lang.org/rustdoc/lints.html
2021-08-11 19:48:51 +00:00
Carol (Nichols || Goulding) 9d15798288 fix: Address or allow Clippy warnings new with Rust 1.54 2021-07-30 09:59:59 -04:00
Andrew Lamb d35b74c226
fix: Fix doc build warnings (#1945)
* fix: Fix doc build warnings

* refactor: add deny bare_urls to crates

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-13 08:03:42 +00:00
Marco Neumann 3832987ecb chore: enforce `clippy::future_not_send` for `influxdb2_client` 2021-06-10 09:46:35 +02:00
Marco Neumann eddc9319ff docs: deny broken intradoc links 2021-04-27 13:22:28 +02:00
Edd Robinson 2784f89e6e refactor: sigh 2021-04-20 17:30:50 +00:00
Carol (Nichols || Goulding) 49b8d7690c Merge remote-tracking branch 'origin/main' into feature-health 2021-04-19 13:28:37 -04:00
jeivardan 203a4c2611 fix: remove Default trait for HealthCheck
Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-16 11:45:31 +05:30
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 eef9841161
revert: "refactor: Move client to client.rs"
This reverts commit 608001f2e6.
2021-04-16 09:58:12 +05:30
Aakash Hemadri 608001f2e6
refactor: Move client to client.rs
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-14 21:19:52 +05:30
Aakash Hemadri 3647c94ace
refactor: Move write to api/write.rs
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-14 18:40:42 +05:30
Aakash Hemadri 1177b38aaa
refactor: Move create_bucket to api/bucket
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-14 18:10:57 +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 83db9235ca fix: making status mandatory by removing Option
Implemented Default trait for enum Status

Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-14 14:36:08 +05:30
jeivardan 1d449af5b6 fix: correct the typo in comments
fix typos in the health.rs comments

Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-13 11:33:53 +05:30
jeivardan b66df3e57f fix: Make org_id as Option
use Option in the private labels function rather than the special value of "" .

Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-13 11:25:46 +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 655fc7b8a5 fix: Don't return Result from test functions
Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-09 09:55:01 +05:30
jeivardan 3c24caf29a fix: cargo fmt
Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-04-09 09:38:11 +05:30
Jeivardan af72581658
Merge branch 'main' into feature-label 2021-04-09 03:50:08 +00:00
Carol (Nichols || Goulding) 1552c0113a Merge remote-tracking branch 'origin/main' into feature-query 2021-04-08 14:40:12 -04:00
Carol (Nichols || Goulding) efd339e0a5 Merge remote-tracking branch 'origin/main' into feature-label 2021-04-08 14:39:29 -04:00
Carol (Nichols || Goulding) 4f627e0560 fix: Onboarding returns 201, not 200 2021-04-07 14:11:02 -04:00
Carol (Nichols || Goulding) 27a45aa036 fix: Don't send auth header if token specified is empty string
Not all endpoints need authorization, sometimes we don't have it!
2021-04-07 14:11:00 -04:00
Carol (Nichols || Goulding) 82588d5c72 fix: Don't return Result from test functions 2021-04-07 12:40:00 -04:00
Aakash Hemadri fe19e3b3ae
fix: Misplaced annotations
fix: Unnecessary escaped characters in comments

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-06 15:47:34 +05:30
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 3c99ea2187
fix: Use unwrap_or_default over unwrap_or_else
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-02 11:29:23 +05:30
Aakash Hemadri 96a63768f5
fix: serde(rename) in influxdb_client
Replace extern_ to r#extern

Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-02 11:27:20 +05:30
Aakash Hemadri bae9d36fb4
fix: serde(rename) & update Option<Vec<T> to Vec<T>
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-02 10:55:54 +05:30
Aakash Hemadri 792a066ec8
chore: Remove unnecessary comments
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-02 10:41:45 +05:30
Aakash Hemadri 923b6a65b1
docs: Replace query module with appropriate documentation
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
2021-04-02 10:40:19 +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 6646231a88 fix: cargo fmt
Signed-off-by: jeivardan <jeivardanvenkatesh@gmail.com>
2021-03-30 14:01:01 +05:30