ruby_event_store-outbox 0.0.6 → 0.0.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8e2e739e68444fa47e69b09357b61b1d7b7136db13663028b97eaff9c8f3375
|
4
|
+
data.tar.gz: fbf657458847ca98c43698c4b40acea4993e0a9c752f788e112490e190d2415b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a08df4a60ba2e339e2914c20fe4a5638f18b20a55a580e2b048758bf273d20fbff1a05fe0eb183d38d625ce6ce94a2e8cc034a1136320ade6bd0e3adeec165
|
7
|
+
data.tar.gz: 8c6114269f96e992a134b5b731a7be3ba870c4a57d75bfc74129cd385b5100c93d450a9574a53fd3d1bf0489801a0839fc9d3fc9e35237d96672dc4c62baf0da
|
@@ -5,7 +5,16 @@ module RubyEventStore
|
|
5
5
|
module Metrics
|
6
6
|
class Influx
|
7
7
|
def initialize(url)
|
8
|
-
|
8
|
+
uri = URI.parse(url)
|
9
|
+
params = CGI.parse(uri.query || "")
|
10
|
+
options = {
|
11
|
+
url: url,
|
12
|
+
async: true,
|
13
|
+
time_precision: 'ns',
|
14
|
+
}
|
15
|
+
options[:username] = params["username"]&.first if params["username"].present?
|
16
|
+
options[:password] = params["password"]&.first if params["password"].present?
|
17
|
+
@influxdb_client = InfluxDB::Client.new(**options)
|
9
18
|
end
|
10
19
|
|
11
20
|
def write_point_queue(status:, enqueued: 0, failed: 0)
|
@@ -25,7 +34,6 @@ module RubyEventStore
|
|
25
34
|
@influxdb_client.write_point(series, data)
|
26
35
|
end
|
27
36
|
|
28
|
-
private
|
29
37
|
attr_reader :influxdb_client
|
30
38
|
end
|
31
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store-outbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_event_store
|