influxdb-client 1.0.0.pre.108 → 1.0.0.pre.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/influxdb/client/point.rb +2 -0
- data/test/influxdb/point_test.rb +14 -0
- 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: de3a878c00d60a0521a6e4c53cf5f0a004d7467211b3702cdadcce1c75bda84f
|
4
|
+
data.tar.gz: 6370cb153dde6f8de4dd450f3178bb91fff2f6e3a28eac4d4a054cd8d485422d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ffa6b9ec4fbab0822836f1459b64647e75ede4883d6427d8b94021513e0df6120a54df8fb79ba377396dcaafed09a82128e19dff2420ac6bfe0183a38cb3d8
|
7
|
+
data.tar.gz: d6f51e26d449758e060fdf53aa14c7da88a6192e58579076b1c5c1915816f2cce07f65495e2cc2cf23c67f0a8baab2154fdd3512fd4e55f622defdccd5358e7c
|
data/test/influxdb/point_test.rb
CHANGED
@@ -167,6 +167,20 @@ class PointTest < MiniTest::Test
|
|
167
167
|
assert_equal 'h2o,host=aws,region=us level=5i 123', point_args.to_line_protocol
|
168
168
|
end
|
169
169
|
|
170
|
+
def test_time_float
|
171
|
+
point_args = InfluxDB::Point.new(name: 'h2o',
|
172
|
+
tags: { host: 'aws', region: 'us' },
|
173
|
+
fields: { level: 5 }, time: 1.444897215e+18)
|
174
|
+
|
175
|
+
assert_equal 'h2o,host=aws,region=us level=5i 1444897215000000000', point_args.to_line_protocol
|
176
|
+
|
177
|
+
point_args = InfluxDB::Point.new(name: 'h2o',
|
178
|
+
tags: { host: 'aws', region: 'us' },
|
179
|
+
fields: { level: 5 }, time: 102_030_405_060)
|
180
|
+
|
181
|
+
assert_equal 'h2o,host=aws,region=us level=5i 102030405060', point_args.to_line_protocol
|
182
|
+
end
|
183
|
+
|
170
184
|
def test_utf_8
|
171
185
|
point = InfluxDB::Point.new(name: 'h2o')
|
172
186
|
.add_tag('location', 'Přerov')
|