influxdb-client 1.2.0.pre.562 → 1.2.0.pre.573
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/test/influxdb/write_api_batching_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22935436c556b5c953b34b172168a700bba75c6da5eb3cb38ba2f65cc531202f
|
4
|
+
data.tar.gz: 4ab175926f5b52a647c7c7facba8f2425ec45f1c06a3980a727913d5a8f00d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d956a85d7200fb34f0e51def40320a1eeb48ee48c424b877f71a82269fd6052cfe4cdc0c7e8b929d62d7b4c651cc8f50f6bfb49fdc658013cb8ef3ea55e535de
|
7
|
+
data.tar.gz: 89a1f2b20710d1bae43fd062b0b5ecfd730188e716715b8172ab1491e0f4269be7d2897ccc9e5430fdc51fb0a3da79ca8937efde15689a5bb8f665551af7b351
|
data/README.md
CHANGED
@@ -121,10 +121,10 @@ The writes are processed in batches which are configurable by `WriteOptions`:
|
|
121
121
|
|
122
122
|
| Property | Description | Default Value |
|
123
123
|
| --- | --- | --- |
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
| batchSize | the number of data point to collect in batch | 1000 |
|
125
|
+
| flushInterval | the number of milliseconds before the batch is written | 1000 |
|
126
|
+
| retry_interval | the number of milliseconds to retry unsuccessful write. The retry interval is used when the InfluxDB server does not specify "Retry-After" header. | 1000 |
|
127
|
+
| jitter_interval | the number of milliseconds to increase the batch flush interval by a random amount | 0 |
|
128
128
|
|
129
129
|
```ruby
|
130
130
|
write_options = InfluxDB2::WriteOptions.new(write_type: InfluxDB2::WriteType::BATCHING,
|
@@ -279,7 +279,7 @@ class WriteApiBatchingTest < MiniTest::Test
|
|
279
279
|
@write_client.write(data: ['h2o_feet,location=coyote_creek water_level=1.0 1',
|
280
280
|
'h2o_feet,location=coyote_creek water_level=2.0 2'])
|
281
281
|
|
282
|
-
sleep(0.
|
282
|
+
sleep(0.05)
|
283
283
|
|
284
284
|
assert_requested(:post, 'http://localhost:9999/api/v2/write?bucket=my-bucket&org=my-org&precision=ns',
|
285
285
|
times: 0, body: request)
|