sensu-transport-snssqs 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sensu/transport/snssqs.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f694a7f02192a9f8f6e1ab2ae1ceb430bdc4008
|
4
|
+
data.tar.gz: 1d85c416d74559a4d6cb10d913b9454a85205f96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08e3ad23376b57fe99cc2ffdd4c2fbd7b2f9f604d9cfe1c6206e8d4a786ae59a6ca2a5fbe34315cc230268b13b354c53138200f76daccd412253386de27eee5b
|
7
|
+
data.tar.gz: c22cea4d0055c1872e15ac52dbc8e7158319462c12bf38dec9455163bef7a57b1baf2d27f84582b74421f418db436690ba8f509d1192f4c9989cbd57dd494d50
|
@@ -65,6 +65,10 @@ module Sensu
|
|
65
65
|
|
66
66
|
# subscribe will begin "subscribing" to the consuming sqs queue.
|
67
67
|
#
|
68
|
+
# This method is intended for use by the Sensu server; fanout
|
69
|
+
# subscriptions initiated by the Sensu client process are
|
70
|
+
# treated as a no-op.
|
71
|
+
#
|
68
72
|
# What this really means is that we will start polling for
|
69
73
|
# messages from the SQS queue, and, depending on the message
|
70
74
|
# type, it will call the appropriate callback.
|
@@ -77,6 +81,11 @@ module Sensu
|
|
77
81
|
#
|
78
82
|
# "funnel" and "type" parameters are completely ignored.
|
79
83
|
def subscribe(type, pipe, funnel = nil, options = {}, &callback)
|
84
|
+
if type == :fanout
|
85
|
+
self.logger.debug("skipping unsupported fanout subscription type=#{type}, pipe=#{pipe}, funnel=#{funnel}")
|
86
|
+
return
|
87
|
+
end
|
88
|
+
|
80
89
|
self.logger.info("subscribing to type=#{type}, pipe=#{pipe}, funnel=#{funnel}")
|
81
90
|
|
82
91
|
if pipe == KEEPALIVES_STR
|