influxdb-client 1.4.0.pre.827 → 1.4.0.pre.841
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +4 -4
- data/examples/influxdb_18_example.rb +1 -1
- data/lib/{influxdb2/client.rb → influxdb-client.rb} +0 -0
- data/lib/influxdb2/client/point.rb +7 -7
- data/lib/influxdb2/client/write_api.rb +2 -2
- data/test/test_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928f85d4335a21d90202d6752354082574d5393baef2bccafd06471e9c95476d
|
4
|
+
data.tar.gz: e225468b8df1efd6b68072863ada2d42274c9092fca3915a272da7e9948a3116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bfa615cb0187e6afaf0807e0566b5cc5985244bbfc61581e5165f20b74c47add51e3db9b35ee1d53cba62e703191df9e0b2bbeeb37344a9b219977b33c55b14
|
7
|
+
data.tar.gz: 12b2b88ce812ab4d76ca8ba1ba11f18c84c9d2a84199f1015f400513f25ac7ea56bac2ae5946333c07a9f2d7b7aa3fa9d97e5c8a6701609201747b120557ee3b
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@
|
|
4
4
|
|
5
5
|
1. [#38](https://github.com/influxdata/influxdb-client-ruby/pull/38): Remove trailing slash from connection URL
|
6
6
|
|
7
|
+
### Documentation
|
8
|
+
|
9
|
+
1. [#37](https://github.com/influxdata/influxdb-client-ruby/pull/37): Fix documentation: replace references to InfluxDB module by InfluxDB2. Allow `require 'influxdb-client'`
|
10
|
+
|
7
11
|
## 1.3.0 [2020-04-17]
|
8
12
|
|
9
13
|
### Features
|
data/README.md
CHANGED
@@ -160,10 +160,10 @@ write_api = client.create_write_api
|
|
160
160
|
write_api.write(data: 'h2o,location=west value=33i 15', precision: InfluxDB2::WritePrecision::SECOND)
|
161
161
|
```
|
162
162
|
Allowed values for precision are:
|
163
|
-
- `
|
164
|
-
- `
|
165
|
-
- `
|
166
|
-
- `
|
163
|
+
- `InfluxDB2::WritePrecision::NANOSECOND` for nanosecond
|
164
|
+
- `InfluxDB2::WritePrecision::MICROSECOND` for microsecond
|
165
|
+
- `InfluxDB2::WritePrecision::MILLISECOND` for millisecond
|
166
|
+
- `InfluxDB2::WritePrecision::SECOND` for second
|
167
167
|
|
168
168
|
#### Configure destination
|
169
169
|
|
File without changes
|
@@ -28,7 +28,7 @@ module InfluxDB2
|
|
28
28
|
class Point
|
29
29
|
# Create DataPoint instance for specified measurement name.
|
30
30
|
#
|
31
|
-
# @example
|
31
|
+
# @example InfluxDB2::Point.new(name: "h2o",
|
32
32
|
# tags: {host: 'aws', region: 'us'},
|
33
33
|
# fields: {level: 5, saturation: "99%"},
|
34
34
|
# time: 123)
|
@@ -64,7 +64,7 @@ module InfluxDB2
|
|
64
64
|
|
65
65
|
# Adds or replaces a tag value for a point.
|
66
66
|
#
|
67
|
-
# @example
|
67
|
+
# @example InfluxDB2::Point.new(name: "h2o")
|
68
68
|
# .add_tag("location", "europe")
|
69
69
|
# .add_field("level", 2)
|
70
70
|
#
|
@@ -77,7 +77,7 @@ module InfluxDB2
|
|
77
77
|
|
78
78
|
# Adds or replaces a field value for a point.
|
79
79
|
#
|
80
|
-
# @example
|
80
|
+
# @example InfluxDB2::Point.new(name: "h2o")
|
81
81
|
# .add_tag("location", "europe")
|
82
82
|
# .add_field("level", 2)
|
83
83
|
#
|
@@ -90,15 +90,15 @@ module InfluxDB2
|
|
90
90
|
|
91
91
|
# Updates the timestamp for the point.
|
92
92
|
#
|
93
|
-
# @example
|
93
|
+
# @example InfluxDB2::Point.new(name: "h2o")
|
94
94
|
# .add_tag("location", "europe")
|
95
95
|
# .add_field("level", 2)
|
96
|
-
# .time(Time.new(2015, 10, 15, 8, 20, 15),
|
96
|
+
# .time(Time.new(2015, 10, 15, 8, 20, 15), InfluxDB2::WritePrecision::MILLISECOND)
|
97
97
|
#
|
98
|
-
# @example
|
98
|
+
# @example InfluxDB2::Point.new(name: "h2o")
|
99
99
|
# .add_tag("location", "europe")
|
100
100
|
# .add_field("level", 2)
|
101
|
-
# .time(123,
|
101
|
+
# .time(123, InfluxDB2::WritePrecision::NANOSECOND)
|
102
102
|
#
|
103
103
|
# @param [Object] time the timestamp
|
104
104
|
# @param [WritePrecision] precision the timestamp precision
|
@@ -101,14 +101,14 @@ module InfluxDB2
|
|
101
101
|
# },
|
102
102
|
# {name: 'gpu', fields: {value: 0.9999}}
|
103
103
|
# ],
|
104
|
-
# precision:
|
104
|
+
# precision: InfluxDB2::WritePrecision::NANOSECOND,
|
105
105
|
# bucket: 'my-bucket',
|
106
106
|
# org: 'my-org'
|
107
107
|
# )
|
108
108
|
#
|
109
109
|
# @example write(data: 'h2o,location=west value=33i 15')
|
110
110
|
#
|
111
|
-
# @example point =
|
111
|
+
# @example point = InfluxDB2::Point.new(name: 'h2o')
|
112
112
|
# .add_tag('location', 'europe')
|
113
113
|
# .add_field('level', 2)
|
114
114
|
#
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0.pre.
|
4
|
+
version: 1.4.0.pre.841
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Bednar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -147,7 +147,7 @@ files:
|
|
147
147
|
- bin/swagger.yml
|
148
148
|
- examples/influxdb_18_example.rb
|
149
149
|
- influxdb-client.gemspec
|
150
|
-
- lib/
|
150
|
+
- lib/influxdb-client.rb
|
151
151
|
- lib/influxdb2/client/client.rb
|
152
152
|
- lib/influxdb2/client/default_api.rb
|
153
153
|
- lib/influxdb2/client/delete_api.rb
|