logstash-input-mongoprofile 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/mongoprofile.rb +3 -2
- data/logstash-input-mongoprofile.gemspec +1 -1
- 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: 751c14fd2f1d734c2bdcdb8b9cb881066e1221d8
|
4
|
+
data.tar.gz: fe43b0cd3cfa762e46ec341a4482a6a9f743cf11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c44fb1215ff9afc52f878a3d7e6df621e2a754edbfd9f7031fed2aa3c73517ecf6cdaf83e4365fd2d459473728010a75875362f2797c5f3ee01c2ac320e48fb5
|
7
|
+
data.tar.gz: 18ad233a52748b60294395e2f46a34221fdf747a135b537abfc061887635e3b33954ef9ba2964eeebc5fa85b73d15dbf73bf63bf77fb64055d6d3aa37a76c640
|
@@ -23,7 +23,7 @@ class LogStash::Inputs::Mongoprofile < LogStash::Inputs::Base
|
|
23
23
|
public
|
24
24
|
def register
|
25
25
|
@host = Socket.gethostname
|
26
|
-
@controller = Controller.new(@host, @url, 'system.profile', 1000, @path, @client_host)
|
26
|
+
@controller = Controller.new(@host, @url, 'system.profile', 1000, @path, @client_host, @logger)
|
27
27
|
end
|
28
28
|
|
29
29
|
# def register
|
@@ -146,11 +146,12 @@ class LastValueStore
|
|
146
146
|
end
|
147
147
|
|
148
148
|
class Controller
|
149
|
-
def initialize(event, url, collection, limit, path, client_host)
|
149
|
+
def initialize(event, url, collection, limit, path, client_host, logger)
|
150
150
|
@mongo_accessor = MongoAccessor.new(url, collection, client_host)
|
151
151
|
@last_value_store = LastValueStore.new(path, collection)
|
152
152
|
@document_parser = DocumentParser.new(event)
|
153
153
|
@limit = limit
|
154
|
+
@logger = logger
|
154
155
|
end
|
155
156
|
|
156
157
|
def get_next_events
|