logstash-input-flume 0.1.1 → 0.1.2
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/lib/logstash/inputs/flume.rb +0 -12
- data/logstash-input-flume.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 789168b1a88ecb5ae67af38965e859ba041499135b6a6810330176e0d7641427
|
4
|
+
data.tar.gz: '09cfb8b78b3205e5f72b846ac54d22440b7a0a12091223f1d516004708625fc7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eb2f52a672459ce1c3f5d407236eb825de39976b0a5a2df23dbde64d4cffc543f59d15c3532a16f314e05f69abf5ab070e303c6bfa6d080b27304ba46632ef4
|
7
|
+
data.tar.gz: 85b2defc2fdcc1c4ff6356a4c756adb56fb5bbc51effb28a60b0a8d6092b4dfebb78404e796864d1e6765a91ec08f2ed1fe580679589a67204c33c70283ff694
|
@@ -85,8 +85,6 @@ class ResourceOwnerOAuthClient < OAuthClient
|
|
85
85
|
|
86
86
|
token_resp_json = JSON.parse(auth_resp.body)
|
87
87
|
|
88
|
-
puts token_resp_json
|
89
|
-
|
90
88
|
unless token_resp_json["success"]
|
91
89
|
detailed = token_resp_json["detailed"]
|
92
90
|
|
@@ -156,8 +154,6 @@ class FlumeApiConnection
|
|
156
154
|
resp_json = JSON.parse(resp.body)
|
157
155
|
|
158
156
|
unless resp_json["success"]
|
159
|
-
puts resp.to_hash
|
160
|
-
|
161
157
|
retry_after = resp["retry-after"]
|
162
158
|
|
163
159
|
if retry_after
|
@@ -228,16 +224,10 @@ class FlumeApiConnection
|
|
228
224
|
}
|
229
225
|
}
|
230
226
|
|
231
|
-
puts ret
|
232
|
-
|
233
227
|
ret.sort_by! { |item| item[:from] }
|
234
228
|
|
235
|
-
puts ret
|
236
|
-
|
237
229
|
ret.pop
|
238
230
|
|
239
|
-
puts ret
|
240
|
-
|
241
231
|
return ret
|
242
232
|
end
|
243
233
|
|
@@ -306,8 +296,6 @@ class LogStash::Inputs::Flume < LogStash::Inputs::Base
|
|
306
296
|
|
307
297
|
readings_by_minute = @conn.get_readings_by_minute(device, now, since)
|
308
298
|
|
309
|
-
puts JSON.generate(readings_by_minute)
|
310
|
-
|
311
299
|
unless readings_by_minute.empty?
|
312
300
|
time_by_device[device_id] = readings_by_minute.map { |v| v[:to] }.max
|
313
301
|
|