influxdb 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +41 -0
- data/.travis.yml +3 -2
- data/Gemfile +7 -1
- data/README.md +218 -102
- data/Rakefile +2 -6
- data/lib/influxdb.rb +15 -5
- data/lib/influxdb/client.rb +38 -433
- data/lib/influxdb/client/http.rb +123 -0
- data/lib/influxdb/config.rb +66 -0
- data/lib/influxdb/errors.rb +8 -2
- data/lib/influxdb/{logger.rb → logging.rb} +6 -5
- data/lib/influxdb/max_queue.rb +2 -1
- data/lib/influxdb/point_value.rb +27 -25
- data/lib/influxdb/query/cluster.rb +17 -0
- data/lib/influxdb/query/continuous_query.rb +22 -0
- data/lib/influxdb/query/core.rb +110 -0
- data/lib/influxdb/query/database.rb +21 -0
- data/lib/influxdb/query/retention_policy.rb +26 -0
- data/lib/influxdb/query/user.rb +41 -0
- data/lib/influxdb/version.rb +2 -2
- data/lib/influxdb/writer/async.rb +115 -0
- data/lib/influxdb/writer/udp.rb +21 -0
- data/spec/influxdb/cases/async_client_spec.rb +33 -0
- data/spec/influxdb/cases/query_cluster_spec.rb +65 -0
- data/spec/influxdb/cases/query_continuous_query_spec.rb +82 -0
- data/spec/influxdb/cases/query_core.rb +34 -0
- data/spec/influxdb/cases/query_database_spec.rb +58 -0
- data/spec/influxdb/cases/query_retention_policy_spec.rb +84 -0
- data/spec/influxdb/cases/query_series_spec.rb +50 -0
- data/spec/influxdb/cases/query_shard_space_spec.rb +105 -0
- data/spec/influxdb/cases/query_shard_spec.rb +43 -0
- data/spec/influxdb/cases/query_user_spec.rb +127 -0
- data/spec/influxdb/cases/querying_spec.rb +149 -0
- data/spec/influxdb/cases/retry_requests_spec.rb +102 -0
- data/spec/influxdb/cases/udp_client_spec.rb +21 -0
- data/spec/influxdb/cases/write_points_spec.rb +140 -0
- data/spec/influxdb/client_spec.rb +37 -810
- data/spec/influxdb/config_spec.rb +118 -0
- data/spec/influxdb/{logger_spec.rb → logging_spec.rb} +4 -8
- data/spec/influxdb/max_queue_spec.rb +29 -0
- data/spec/influxdb/point_value_spec.rb +81 -14
- data/spec/influxdb/worker_spec.rb +8 -11
- data/spec/spec_helper.rb +7 -10
- metadata +65 -30
- data/lib/influxdb/udp_client.rb +0 -16
- data/lib/influxdb/worker.rb +0 -80
- data/spec/influxdb/udp_client_spec.rb +0 -33
- data/spec/influxdb_spec.rb +0 -4
- data/spec/max_queue_spec.rb +0 -32
@@ -0,0 +1,118 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe InfluxDB::Config do
|
4
|
+
let(:conf) do
|
5
|
+
InfluxDB::Client.new(*args).config
|
6
|
+
end
|
7
|
+
|
8
|
+
let(:args) { {} }
|
9
|
+
|
10
|
+
context "with no parameters specified" do
|
11
|
+
specify { expect(conf.database).to be_nil }
|
12
|
+
specify { expect(conf.hosts).to eq ["localhost"] }
|
13
|
+
specify { expect(conf.port).to eq 8086 }
|
14
|
+
specify { expect(conf.username).to eq "root" }
|
15
|
+
specify { expect(conf.password).to eq "root" }
|
16
|
+
specify { expect(conf.use_ssl).to be_falsey }
|
17
|
+
specify { expect(conf.time_precision).to eq "s" }
|
18
|
+
specify { expect(conf.auth_method).to eq "params" }
|
19
|
+
specify { expect(conf.denormalize).to be_truthy }
|
20
|
+
specify { expect(conf).not_to be_udp }
|
21
|
+
specify { expect(conf).not_to be_async }
|
22
|
+
end
|
23
|
+
|
24
|
+
context "with no database specified" do
|
25
|
+
let(:args) do
|
26
|
+
[{
|
27
|
+
host: "host",
|
28
|
+
port: "port",
|
29
|
+
username: "username",
|
30
|
+
password: "password",
|
31
|
+
time_precision: "m"
|
32
|
+
}]
|
33
|
+
end
|
34
|
+
|
35
|
+
specify { expect(conf.database).to be_nil }
|
36
|
+
specify { expect(conf.hosts).to eq ["host"] }
|
37
|
+
specify { expect(conf.port).to eq "port" }
|
38
|
+
specify { expect(conf.username).to eq "username" }
|
39
|
+
specify { expect(conf.password).to eq "password" }
|
40
|
+
specify { expect(conf.time_precision).to eq "m" }
|
41
|
+
end
|
42
|
+
|
43
|
+
context "with both a database and options specified" do
|
44
|
+
let(:args) do
|
45
|
+
[
|
46
|
+
"database",
|
47
|
+
host: "host",
|
48
|
+
port: "port",
|
49
|
+
username: "username",
|
50
|
+
password: "password",
|
51
|
+
time_precision: "m"
|
52
|
+
]
|
53
|
+
end
|
54
|
+
|
55
|
+
specify { expect(conf.database).to eq "database" }
|
56
|
+
specify { expect(conf.hosts).to eq ["host"] }
|
57
|
+
specify { expect(conf.port).to eq "port" }
|
58
|
+
specify { expect(conf.username).to eq "username" }
|
59
|
+
specify { expect(conf.password).to eq "password" }
|
60
|
+
specify { expect(conf.time_precision).to eq "m" }
|
61
|
+
end
|
62
|
+
|
63
|
+
context "with ssl option specified" do
|
64
|
+
let(:args) { [{ use_ssl: true }] }
|
65
|
+
|
66
|
+
specify { expect(conf.database).to be_nil }
|
67
|
+
specify { expect(conf.hosts).to eq ["localhost"] }
|
68
|
+
specify { expect(conf.port).to eq 8086 }
|
69
|
+
specify { expect(conf.username).to eq "root" }
|
70
|
+
specify { expect(conf.password).to eq "root" }
|
71
|
+
specify { expect(conf.use_ssl).to be_truthy }
|
72
|
+
end
|
73
|
+
|
74
|
+
context "with multiple hosts specified" do
|
75
|
+
let(:args) { [{ hosts: ["1.1.1.1", "2.2.2.2"] }] }
|
76
|
+
|
77
|
+
specify { expect(conf.database).to be_nil }
|
78
|
+
specify { expect(conf.port).to eq 8086 }
|
79
|
+
specify { expect(conf.username).to eq "root" }
|
80
|
+
specify { expect(conf.password).to eq "root" }
|
81
|
+
specify { expect(conf.hosts).to eq ["1.1.1.1", "2.2.2.2"] }
|
82
|
+
end
|
83
|
+
|
84
|
+
context "with auth_method basic auth specified" do
|
85
|
+
let(:args) { [{ auth_method: 'basic_auth' }] }
|
86
|
+
|
87
|
+
specify { expect(conf.database).to be_nil }
|
88
|
+
specify { expect(conf.hosts).to eq ["localhost"] }
|
89
|
+
specify { expect(conf.port).to eq 8086 }
|
90
|
+
specify { expect(conf.username).to eq "root" }
|
91
|
+
specify { expect(conf.password).to eq "root" }
|
92
|
+
specify { expect(conf.auth_method).to eq "basic_auth" }
|
93
|
+
end
|
94
|
+
|
95
|
+
context "with udp specified with params" do
|
96
|
+
let(:args) { [{ udp: { host: 'localhost', port: 4444 } }] }
|
97
|
+
|
98
|
+
specify { expect(conf).to be_udp }
|
99
|
+
end
|
100
|
+
|
101
|
+
context "with udp specified as true" do
|
102
|
+
let(:args) { [{ udp: true }] }
|
103
|
+
|
104
|
+
specify { expect(conf).to be_udp }
|
105
|
+
end
|
106
|
+
|
107
|
+
context "with async specified with params" do
|
108
|
+
let(:args) { [{ async: { max_queue: 20_000 } }] }
|
109
|
+
|
110
|
+
specify { expect(conf).to be_async }
|
111
|
+
end
|
112
|
+
|
113
|
+
context "with async specified as true" do
|
114
|
+
let(:args) { [{ async: true }] }
|
115
|
+
|
116
|
+
specify { expect(conf).to be_async }
|
117
|
+
end
|
118
|
+
end
|
@@ -2,13 +2,12 @@ require 'spec_helper'
|
|
2
2
|
require 'logger'
|
3
3
|
|
4
4
|
describe InfluxDB::Logging do
|
5
|
-
class LoggerTest
|
5
|
+
class LoggerTest # :nodoc:
|
6
6
|
include InfluxDB::Logging
|
7
7
|
|
8
8
|
def write_to_log(level, message)
|
9
9
|
log(level, message)
|
10
10
|
end
|
11
|
-
|
12
11
|
end
|
13
12
|
|
14
13
|
before { @old_logger = InfluxDB::Logging.logger }
|
@@ -23,25 +22,22 @@ describe InfluxDB::Logging do
|
|
23
22
|
InfluxDB::Logging.logger = new_logger
|
24
23
|
expect(InfluxDB::Logging.logger).to eq(new_logger)
|
25
24
|
end
|
26
|
-
|
25
|
+
|
27
26
|
it "allows disabling of a logger" do
|
28
27
|
InfluxDB::Logging.logger = false
|
29
28
|
expect(InfluxDB::Logging.logger).to eql false
|
30
29
|
end
|
31
|
-
|
30
|
+
|
32
31
|
context "when logging is disabled" do
|
33
|
-
|
34
32
|
subject { LoggerTest.new }
|
35
|
-
|
36
33
|
it "does not log" do
|
37
34
|
InfluxDB::Logging.logger = false
|
38
35
|
expect(InfluxDB::Logging.logger).not_to receive(:debug)
|
39
36
|
subject.write_to_log(:debug, 'test')
|
40
|
-
end
|
37
|
+
end
|
41
38
|
end
|
42
39
|
|
43
40
|
context "when included in classes" do
|
44
|
-
|
45
41
|
subject { LoggerTest.new }
|
46
42
|
|
47
43
|
it "logs" do
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe InfluxDB::MaxQueue do
|
4
|
+
specify { is_expected.to be_a(Queue) }
|
5
|
+
|
6
|
+
context "#new" do
|
7
|
+
it "allows max_depth to be set" do
|
8
|
+
expect(described_class.new(500).max).to eq 500
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
context "#push" do
|
13
|
+
let(:queue) { described_class.new(5) }
|
14
|
+
|
15
|
+
it "allows an item to be added if the queue is not full" do
|
16
|
+
expect(queue.size).to be_zero
|
17
|
+
queue.push(1)
|
18
|
+
expect(queue.size).to eq 1
|
19
|
+
end
|
20
|
+
|
21
|
+
it "doesn't allow items to be added if the queue is full" do
|
22
|
+
expect(queue.size).to be_zero
|
23
|
+
5.times { |n| queue.push(n) }
|
24
|
+
expect(queue.size).to eq 5
|
25
|
+
queue.push(6)
|
26
|
+
expect(queue.size).to eq 5
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,27 +1,94 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe InfluxDB::PointValue do
|
4
|
+
describe "whitespace escaping" do
|
5
|
+
it 'should escape series name' do
|
6
|
+
point = InfluxDB::PointValue.new(series: "Some Long String", values: { value: 5 })
|
7
|
+
expect(point.series).to eq("Some\\ Long\\ String")
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should escape keys of passed value keys' do
|
11
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
12
|
+
values: { 'some string key' => 5 })
|
13
|
+
expect(point.values.split("=").first).to eq("some\\ string\\ key")
|
14
|
+
end
|
4
15
|
|
5
|
-
|
16
|
+
it 'should escape passed values' do
|
17
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
18
|
+
values: { response_time: 0.34343 },
|
19
|
+
tags: { city: "Twin Peaks" })
|
20
|
+
expect(point.tags.split("=").last).to eq('"Twin\\ Peaks"')
|
21
|
+
end
|
22
|
+
end
|
6
23
|
|
7
|
-
|
8
|
-
|
9
|
-
|
24
|
+
describe "comma escaping" do
|
25
|
+
it 'should escape series name' do
|
26
|
+
point = InfluxDB::PointValue.new(series: "Some Long String,", values: { value: 5 })
|
27
|
+
expect(point.series).to eq("Some\\ Long\\ String\\,")
|
10
28
|
end
|
11
29
|
|
12
|
-
it 'should
|
13
|
-
|
14
|
-
|
30
|
+
it 'should escape keys of passed value keys' do
|
31
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
32
|
+
values: { 'some string key,' => 5 })
|
33
|
+
expect(point.values.split("=").first).to eq("some\\ string\\ key\\,")
|
15
34
|
end
|
16
35
|
|
17
|
-
it 'should
|
18
|
-
|
19
|
-
|
36
|
+
it 'should escape passed values' do
|
37
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
38
|
+
values: { response_time: 0.34343 },
|
39
|
+
tags: { city: "Twin Peaks," })
|
40
|
+
expect(point.tags.split("=").last).to eq('"Twin\\ Peaks\\,"')
|
20
41
|
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "double quote escaping" do
|
45
|
+
it 'should escape passed values' do
|
46
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
47
|
+
values: { response_time: 0.34343 },
|
48
|
+
tags: { city: "Twin Peaks\"" })
|
49
|
+
expect(point.tags.split("=").last).to eq('"Twin\\ Peaks\\""')
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
|
54
|
+
describe 'dump' do
|
55
|
+
context "with all possible data passed" do
|
56
|
+
let(:expected_value) do
|
57
|
+
'responses,region="eu",status=200 value=5,threshold=0.54 1436349652'
|
58
|
+
end
|
59
|
+
it 'should have proper form' do
|
60
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
61
|
+
values: { value: 5, threshold: 0.54 },
|
62
|
+
tags: { region: 'eu', status: 200 },
|
63
|
+
timestamp: 1_436_349_652)
|
64
|
+
|
65
|
+
expect(point.dump).to eq(expected_value)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context "with no tags" do
|
70
|
+
let(:expected_value) do
|
71
|
+
"responses value=5,threshold=0.54 1436349652"
|
72
|
+
end
|
73
|
+
it 'should have proper form' do
|
74
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
75
|
+
values: { value: 5, threshold: 0.54 },
|
76
|
+
timestamp: 1_436_349_652)
|
77
|
+
|
78
|
+
expect(point.dump).to eq(expected_value)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
context "with values only" do
|
83
|
+
let(:expected_value) do
|
84
|
+
"responses value=5,threshold=0.54"
|
85
|
+
end
|
86
|
+
it 'should have proper form' do
|
87
|
+
point = InfluxDB::PointValue.new(series: "responses",
|
88
|
+
values: { value: 5, threshold: 0.54 })
|
21
89
|
|
22
|
-
|
23
|
-
|
24
|
-
val.load.should == '{foo:"bar"}'
|
90
|
+
expect(point.dump).to eq(expected_value)
|
91
|
+
end
|
25
92
|
end
|
26
93
|
end
|
27
|
-
end
|
94
|
+
end
|
@@ -1,26 +1,23 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
require 'timeout'
|
3
3
|
|
4
|
-
describe InfluxDB::Worker do
|
5
|
-
let(:fake_client) { double(
|
6
|
-
let(:worker) {
|
4
|
+
describe InfluxDB::Writer::Async::Worker do
|
5
|
+
let(:fake_client) { double(stopped?: false) }
|
6
|
+
let(:worker) { described_class.new(fake_client, {}) }
|
7
7
|
|
8
8
|
describe "#push" do
|
9
|
-
let(:payload) {
|
9
|
+
let(:payload) { "responses,region=eu value=5" }
|
10
10
|
|
11
|
-
it "
|
11
|
+
it "writes to the client" do
|
12
12
|
queue = Queue.new
|
13
|
-
expect(fake_client).to receive(:
|
13
|
+
expect(fake_client).to receive(:write).once.with([payload]) do |_data|
|
14
14
|
queue.push(:received)
|
15
15
|
end
|
16
16
|
worker.push(payload)
|
17
17
|
|
18
|
-
Timeout.timeout(
|
19
|
-
queue.pop
|
18
|
+
Timeout.timeout(described_class::SLEEP_INTERVAL) do
|
19
|
+
queue.pop
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
23
22
|
end
|
24
|
-
|
25
|
-
|
26
23
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
mocks.syntax = [:should, :expect]
|
7
|
-
end
|
8
|
-
config.expect_with :rspec do |expectations|
|
9
|
-
expectations.syntax = [:should, :expect]
|
10
|
-
end
|
1
|
+
require "influxdb"
|
2
|
+
require "webmock/rspec"
|
3
|
+
begin
|
4
|
+
require "pry-byebug"
|
5
|
+
rescue LoadError
|
11
6
|
end
|
7
|
+
|
8
|
+
InfluxDB::Logging.logger = Logger.new(STDOUT) if ENV['LOG']
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Persen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cause
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.0.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.0.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: This is the official Ruby library for InfluxDB.
|
@@ -101,8 +101,9 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
- .gitignore
|
105
|
-
- .
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rubocop.yml"
|
106
|
+
- ".travis.yml"
|
106
107
|
- Gemfile
|
107
108
|
- LICENSE.txt
|
108
109
|
- README.md
|
@@ -110,20 +111,41 @@ files:
|
|
110
111
|
- influxdb.gemspec
|
111
112
|
- lib/influxdb.rb
|
112
113
|
- lib/influxdb/client.rb
|
114
|
+
- lib/influxdb/client/http.rb
|
115
|
+
- lib/influxdb/config.rb
|
113
116
|
- lib/influxdb/errors.rb
|
114
|
-
- lib/influxdb/
|
117
|
+
- lib/influxdb/logging.rb
|
115
118
|
- lib/influxdb/max_queue.rb
|
116
119
|
- lib/influxdb/point_value.rb
|
117
|
-
- lib/influxdb/
|
120
|
+
- lib/influxdb/query/cluster.rb
|
121
|
+
- lib/influxdb/query/continuous_query.rb
|
122
|
+
- lib/influxdb/query/core.rb
|
123
|
+
- lib/influxdb/query/database.rb
|
124
|
+
- lib/influxdb/query/retention_policy.rb
|
125
|
+
- lib/influxdb/query/user.rb
|
118
126
|
- lib/influxdb/version.rb
|
119
|
-
- lib/influxdb/
|
127
|
+
- lib/influxdb/writer/async.rb
|
128
|
+
- lib/influxdb/writer/udp.rb
|
129
|
+
- spec/influxdb/cases/async_client_spec.rb
|
130
|
+
- spec/influxdb/cases/query_cluster_spec.rb
|
131
|
+
- spec/influxdb/cases/query_continuous_query_spec.rb
|
132
|
+
- spec/influxdb/cases/query_core.rb
|
133
|
+
- spec/influxdb/cases/query_database_spec.rb
|
134
|
+
- spec/influxdb/cases/query_retention_policy_spec.rb
|
135
|
+
- spec/influxdb/cases/query_series_spec.rb
|
136
|
+
- spec/influxdb/cases/query_shard_space_spec.rb
|
137
|
+
- spec/influxdb/cases/query_shard_spec.rb
|
138
|
+
- spec/influxdb/cases/query_user_spec.rb
|
139
|
+
- spec/influxdb/cases/querying_spec.rb
|
140
|
+
- spec/influxdb/cases/retry_requests_spec.rb
|
141
|
+
- spec/influxdb/cases/udp_client_spec.rb
|
142
|
+
- spec/influxdb/cases/write_points_spec.rb
|
120
143
|
- spec/influxdb/client_spec.rb
|
121
|
-
- spec/influxdb/
|
144
|
+
- spec/influxdb/config_spec.rb
|
145
|
+
- spec/influxdb/logging_spec.rb
|
146
|
+
- spec/influxdb/max_queue_spec.rb
|
122
147
|
- spec/influxdb/point_value_spec.rb
|
123
|
-
- spec/influxdb/udp_client_spec.rb
|
124
148
|
- spec/influxdb/worker_spec.rb
|
125
|
-
- spec/influxdb_spec.rb
|
126
|
-
- spec/max_queue_spec.rb
|
127
149
|
- spec/spec_helper.rb
|
128
150
|
homepage: http://influxdb.org
|
129
151
|
licenses:
|
@@ -135,26 +157,39 @@ require_paths:
|
|
135
157
|
- lib
|
136
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
137
159
|
requirements:
|
138
|
-
- -
|
160
|
+
- - ">="
|
139
161
|
- !ruby/object:Gem::Version
|
140
162
|
version: '0'
|
141
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
164
|
requirements:
|
143
|
-
- -
|
165
|
+
- - ">="
|
144
166
|
- !ruby/object:Gem::Version
|
145
167
|
version: '0'
|
146
168
|
requirements: []
|
147
169
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
170
|
+
rubygems_version: 2.4.5
|
149
171
|
signing_key:
|
150
172
|
specification_version: 4
|
151
173
|
summary: Ruby library for InfluxDB.
|
152
174
|
test_files:
|
175
|
+
- spec/influxdb/cases/async_client_spec.rb
|
176
|
+
- spec/influxdb/cases/query_cluster_spec.rb
|
177
|
+
- spec/influxdb/cases/query_continuous_query_spec.rb
|
178
|
+
- spec/influxdb/cases/query_core.rb
|
179
|
+
- spec/influxdb/cases/query_database_spec.rb
|
180
|
+
- spec/influxdb/cases/query_retention_policy_spec.rb
|
181
|
+
- spec/influxdb/cases/query_series_spec.rb
|
182
|
+
- spec/influxdb/cases/query_shard_space_spec.rb
|
183
|
+
- spec/influxdb/cases/query_shard_spec.rb
|
184
|
+
- spec/influxdb/cases/query_user_spec.rb
|
185
|
+
- spec/influxdb/cases/querying_spec.rb
|
186
|
+
- spec/influxdb/cases/retry_requests_spec.rb
|
187
|
+
- spec/influxdb/cases/udp_client_spec.rb
|
188
|
+
- spec/influxdb/cases/write_points_spec.rb
|
153
189
|
- spec/influxdb/client_spec.rb
|
154
|
-
- spec/influxdb/
|
190
|
+
- spec/influxdb/config_spec.rb
|
191
|
+
- spec/influxdb/logging_spec.rb
|
192
|
+
- spec/influxdb/max_queue_spec.rb
|
155
193
|
- spec/influxdb/point_value_spec.rb
|
156
|
-
- spec/influxdb/udp_client_spec.rb
|
157
194
|
- spec/influxdb/worker_spec.rb
|
158
|
-
- spec/influxdb_spec.rb
|
159
|
-
- spec/max_queue_spec.rb
|
160
195
|
- spec/spec_helper.rb
|