fluent-plugin-cloudwatch-ingest 0.1.7 → 0.1.8

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: 16a6ab1dc3986131dcfe45db3c801aca54a427af
4
- data.tar.gz: 2c0be67155357340ff8cc519a55bfb1ff423cab7
3
+ metadata.gz: 5e006d972179721836c09b4534b8ee47d3bc138a
4
+ data.tar.gz: 36b654f33f3eb1c99cf21777d7131a2a4edeebf1
5
5
  SHA512:
6
- metadata.gz: 9bb3c533f4e0aba4a0ec3244da01cbc0d5a1eed27be35e0c9c4f4302dde404f790ddf25ac18b2507bbb80bc755b45c47802fcf7a53e5ab291cb59985a0c7ad48
7
- data.tar.gz: dcda3d589504b08c1ebde08b84da802d43576f1e03f0a0f59d37428e77ebadbd3a7c3058bba4fe6d98e162d6ccff7bfa860a5013011b385bad7c0dc62af5b39d
6
+ metadata.gz: 6e1f0262ebedf01a8b8923f45fede6951ed92429956279bab48d97951ec8ea1dc595f26b977b90918dabb23b666a42d8ea90a9dc0fb9ba82e9acaa490c49c167
7
+ data.tar.gz: ab18eeafb6d04bd0e5446a5fa827b30e6f9ce319da1345410807ec1875c3e8e358b874c98cecc7e13f782cee8053600c46f7d3c0d5f93e09b6574ff075a69d6b
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '0.1.7'.freeze
5
+ VERSION = '0.1.8'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -6,8 +6,8 @@ require 'pathname'
6
6
  require 'yaml'
7
7
 
8
8
  module Fluent::Plugin
9
- class Cloudwatch < Input
10
- Fluent::Plugin.register_input('cloudwatch', self)
9
+ class CloudwatchIngestInput < Fluent::Plugin::Input
10
+ Fluent::Plugin.register_input('cloudwatch_ingest', self)
11
11
  helpers :compat_parameters
12
12
 
13
13
  desc 'The region of the source cloudwatch logs'
@@ -41,6 +41,7 @@ module Fluent::Plugin
41
41
  end
42
42
 
43
43
  def start
44
+ super
44
45
  log.info('Started fluentd-plugin-cloudwatch-ingest')
45
46
 
46
47
  # Get a handle to Cloudwatch
@@ -187,7 +188,7 @@ module Fluent::Plugin
187
188
  end
188
189
  end
189
190
 
190
- class Cloudwatch::State < Hash
191
+ class CloudwatchIngestInput::State < Hash
191
192
  class LockFailed < RuntimeError; end
192
193
  attr_accessor :statefile
193
194
 
@@ -206,7 +207,7 @@ module Fluent::Plugin
206
207
  # exception if we can't
207
208
  log.info("Obtaining exclusive lock on state file #{statefile}")
208
209
  lockstatus = statefile.flock(File::LOCK_EX | File::LOCK_NB)
209
- raise Cloudwatch::State::LockFailed if lockstatus == false
210
+ raise CloudwatchIngestInput::State::LockFailed if lockstatus == false
210
211
 
211
212
  merge!(YAML.safe_load(statefile.read))
212
213
  log.info("Loaded state for #{keys.size} log groups from #{statefile}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer
@@ -117,7 +117,7 @@ files:
117
117
  - fluent-plugin-cloudwatch-ingest.gemspec
118
118
  - lib/fluent/plugin/cloudwatch/ingest.rb
119
119
  - lib/fluent/plugin/cloudwatch/ingest/version.rb
120
- - lib/fluent/plugin/in_cloudwatch.rb
120
+ - lib/fluent/plugin/in_cloudwatch_ingest.rb
121
121
  homepage: https://github.com/sampointer/fluent-plugin-cloudwatch-ingest
122
122
  licenses: []
123
123
  metadata: