logstash-input-mongoprofile 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4258635451f2deb6f7324bd52337dc7f3423b89
4
- data.tar.gz: a7cb17868744643edb9297e9134e82d69f7abeaf
3
+ metadata.gz: 751c14fd2f1d734c2bdcdb8b9cb881066e1221d8
4
+ data.tar.gz: fe43b0cd3cfa762e46ec341a4482a6a9f743cf11
5
5
  SHA512:
6
- metadata.gz: a950b0ab5a84a5bb98fff2a3dbae8562ae9f7661888b4312982af2e4f98da2590635aff84d40656864d95cc9b4434acef6853359b1a1c4aec6df2ee804e4339b
7
- data.tar.gz: 4be9b66027a6c8461be1ec758a758d7467ec7bef1b497c203a88a47c873cee406e2b96ece65cede232af8c1f7a6745cb0cddbf9ed4940c598f1e063046a00ac6
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-mongoprofile'
3
- s.version = '0.1.5'
3
+ s.version = '0.1.6'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'MongoDB system.profile input plugin'
6
6
  s.description = 'MongoDB system.profile input plugin'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-mongoprofile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Antonov