Carol (Nichols || Goulding)
d59702ec79
feat: Make the create bucket HTTP API match the Influx 2.0 API
...
The `/api/v2/create_bucket` API was delorean-specific for testing
purposes. This change makes it match the [Influx 2.0 API][influx] and
adds a method to the client for creating buckets.
The client will always send an empty array of `retentionRules` because
that is a required parameter for the Influx API. Delorean always ignores
`retentionRules`. The `description` and `rp` parameters are optional and
are never sent.
[influx]: https://v2.docs.influxdata.com/v2.0/api/#operation/PostBuckets
I believe the gRPC create bucket is also delorean-specific and perhaps
not needed, but I'm leaving it in for now with a note.
2020-08-12 10:08:32 -04:00
Carol (Nichols || Goulding)
6136fd35d1
fix: Make the influx client data_point module public
...
Driven by use in fusion.
2020-08-05 14:57:00 -04:00
Carol (Nichols || Goulding)
76bfae30af
refactor: Extract DataPoint to its own module
2020-07-27 14:41:00 -04:00
Carol (Nichols || Goulding)
c7e70c0d3d
fix: Write a newline after each point
2020-07-27 14:39:21 -04:00
Carol (Nichols || Goulding)
0a210f1cc1
test: Make failures easier to interpret by displaying the string value of the bytes
2020-07-27 14:38:39 -04:00
Carol (Nichols || Goulding)
0709f90040
test: Add a mock server test in the client crate for the newline bug
2020-07-27 14:10:54 -04:00
Carol (Nichols || Goulding)
7d09485cba
refactor: Alphabetize dependencies
2020-07-27 14:06:03 -04:00
Carol (Nichols || Goulding)
9de97e60a1
fix: Remove unneeded 'static and into
2020-07-27 13:46:22 -04:00
Carol (Nichols || Goulding)
d944cce1f9
feat: Make FieldValues implement PartialEq
...
To enable assert_eq! for testing
2020-07-27 11:43:21 -04:00
Carol (Nichols || Goulding)
605f982b17
refactor: Switch from LineProtocol to a WriteDataPoint trait
2020-07-27 11:43:13 -04:00
Jake Goulding
3a9693d289
refactor: Switch from Escaped* types to String
...
And leave a comment explaining how non-UTF-8 data may be implemented in
the future.
2020-07-27 11:39:46 -04:00
Carol (Nichols || Goulding)
d7859b9959
docs: Add explanation for why LineProtocol exists and is private
...
Co-authored-by: Andrew Lamb <alamb@influxdata.com>
2020-07-24 09:42:57 -04:00
Carol (Nichols || Goulding)
3243300dec
docs: Add a quick start example at the top with all functionality so far
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
7ddd793264
fix: Return an error if attempting to build a DataPoint without any fields
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
8cac2f1ca3
fix: Expose the detailed error types in the public API
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
1867d2a44d
fix: Timestamps are signed
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
876796a59d
refactor: Remove duplication by having write call write_line_protocol
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
879b981897
refactor: Rename write methods to clarify their uses
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
938e604b08
fix: Use Self in more places as recommended by clippy
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
40f3ca7880
fix: Use a specific version constraint
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
53ec997d8d
docs: Clean up link to API docs
2020-07-22 17:03:29 -04:00
Jake Goulding
f8304e6e6b
feat: Add a dynamic type to construct data points for ingestion
2020-07-22 17:03:29 -04:00
Carol (Nichols || Goulding)
c1091587f0
docs: Add a TODO about reviewing the name
2020-07-20 09:51:08 -04:00
Carol (Nichols || Goulding)
d15528c2d7
docs: Add link to API doc specification
...
Co-authored-by: Andrew Lamb <alamb@influxdata.com>
2020-07-17 17:06:27 -04:00
Carol (Nichols || Goulding)
3684e48bfc
fix: typo
...
Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2020-07-17 16:19:17 -04:00
Carol (Nichols || Goulding)
668aefae9b
feat: Implement a rudimentary write API in the influx client
2020-07-17 10:28:19 -04:00
Carol (Nichols || Goulding)
7ed24241b5
feat: Set up an InfluxData 2.0 client crate
2020-07-17 10:27:33 -04:00