datadog-notifications 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/datadog/notifications/config.rb +3 -2
- data/lib/datadog/notifications/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e6a54c5139a08ca48165d96f32a226ba277e340
|
4
|
+
data.tar.gz: 2613ffc33cfffdb1f4cdb3a2fbffbe755522f637
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f33592dbe559cd1fb0dc47f2cf013f5093599d95c1ccbe9d888b5b9a687b2948e896ebc931f9d4150ea6d788187cf52177e3b078edb4f6991c14b56fe0a88cef
|
7
|
+
data.tar.gz: c5abfb2da5cfccd1d7423e248cf4128c79a1f62ebd34207e937832157917e4ba254e4d1bca9548580574e79083b97c43c8c7a7c0da155b4eb3f80cf8e46fca6f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
datadog-notifications (0.4.
|
4
|
+
datadog-notifications (0.4.9)
|
5
5
|
activesupport
|
6
6
|
dogstatsd-ruby (~> 3.1)
|
7
7
|
|
@@ -31,7 +31,7 @@ GEM
|
|
31
31
|
descendants_tracker (0.0.4)
|
32
32
|
thread_safe (~> 0.3, >= 0.3.1)
|
33
33
|
diff-lcs (1.3)
|
34
|
-
dogstatsd-ruby (3.
|
34
|
+
dogstatsd-ruby (3.2.0)
|
35
35
|
equalizer (0.0.11)
|
36
36
|
grape (1.0.1)
|
37
37
|
activesupport
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
i18n (0.9.1)
|
44
44
|
concurrent-ruby (~> 1.0)
|
45
45
|
ice_nine (0.11.2)
|
46
|
-
minitest (5.
|
46
|
+
minitest (5.11.0)
|
47
47
|
mustermann (1.0.1)
|
48
48
|
mustermann-grape (1.0.0)
|
49
49
|
mustermann (~> 1.0.0)
|
@@ -1,12 +1,13 @@
|
|
1
1
|
module Datadog
|
2
2
|
class Notifications
|
3
3
|
class Config
|
4
|
-
attr_accessor :hostname, :namespace, :tags, :statsd_host, :statsd_port, :reporter, :plugins
|
4
|
+
attr_accessor :hostname, :namespace, :tags, :statsd_host, :statsd_port, :reporter, :plugins, :socket_path
|
5
5
|
|
6
6
|
def initialize
|
7
7
|
@hostname = ENV['INSTRUMENTATION_HOSTNAME'] || Socket.gethostname
|
8
8
|
@statsd_host = ENV['STATSD_HOST'] || ::Datadog::Statsd::DEFAULT_HOST
|
9
9
|
@statsd_port = (ENV['STATSD_PORT'] || ::Datadog::Statsd::DEFAULT_PORT).to_i
|
10
|
+
@socket_path = ENV['SOCKET_PATH']
|
10
11
|
@reporter = Datadog::Notifications::Reporter
|
11
12
|
@tags = []
|
12
13
|
@plugins = []
|
@@ -24,7 +25,7 @@ module Datadog
|
|
24
25
|
enable_hostname = hostname && hostname != 'false'
|
25
26
|
tags.push("host:#{hostname}") if enable_hostname && tags.none? {|t| t =~ /^host\:/ }
|
26
27
|
|
27
|
-
reporter.new statsd_host, statsd_port, namespace: namespace, tags: tags
|
28
|
+
reporter.new statsd_host, statsd_port, namespace: namespace, tags: tags, socket_path: socket_path
|
28
29
|
end
|
29
30
|
protected :connect!
|
30
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog-notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|