logstash-output-pagerduty 3.0.2 → 3.0.3
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/CHANGELOG.md +3 -0
- data/lib/logstash/outputs/pagerduty.rb +1 -1
- data/logstash-output-pagerduty.gemspec +1 -1
- data/spec/outputs/pagerduty_spec.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d14974f0526ad0234d1f3c5b5c2418465e36e01b
|
4
|
+
data.tar.gz: 49901c3cbde49abc8379e54e7011685a78dd1c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09c2f1b1133db0453b6af9079fb05d7efb2634270f823c5ae01076b975c76d8d1a4aab36ca38731707be34a47572663ed16f51dba35c0637b98897030aa7c899
|
7
|
+
data.tar.gz: 3bbefa94da0299471b5afc81f02737a718128b8af53e59d067f95c7a5eae6dbd2b61640ab8651df13280965e2003febed109a47755ef101a58a24fb1546ff846
|
data/CHANGELOG.md
CHANGED
@@ -62,7 +62,7 @@ class LogStash::Outputs::PagerDuty < LogStash::Outputs::Base
|
|
62
62
|
end
|
63
63
|
pd_event[:details][:tags] = @tags if @tags
|
64
64
|
|
65
|
-
@logger.
|
65
|
+
@logger.debug("PD Event", :event => pd_event)
|
66
66
|
begin
|
67
67
|
request = Net::HTTP::Post.new(@pd_uri.path)
|
68
68
|
request.body = LogStash::Json.dump(pd_event)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-pagerduty'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "The PagerDuty output will send notifications based on pre-configured services and escalation policies."
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -20,6 +20,7 @@ describe LogStash::Outputs::PagerDuty do
|
|
20
20
|
it "send the event to pagerduty" do
|
21
21
|
stub_request(:post, /#{subject.pdurl}/).
|
22
22
|
to_return(status: 200, body: "stubbed response", headers: {})
|
23
|
+
expect(logger).to receive(:debug).with("PD Event", instance_of(Hash))
|
23
24
|
expect(logger).to receive(:debug).with("PD Response", :response => "stubbed response").once
|
24
25
|
expect(logger).to receive(:debug).with("PD Request", kind_of(Hash)).once
|
25
26
|
expect(logger).to receive(:debug).with("PD Details added:", kind_of(Hash)).twice
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-pagerduty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.4.8
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: The PagerDuty output will send notifications based on pre-configured services and escalation policies.
|