fluent-plugin-cloudwatch-ingest 0.1.10 → 0.1.11

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: 867b3c94f91c292c250bb5b2071a6f0115f56051
4
- data.tar.gz: 2844dc5a9d0443f15f5b240ca1c91b84b35b512c
3
+ metadata.gz: d1b864e75c65f7db99aecdf2827b787475cbaa29
4
+ data.tar.gz: 9cd0c044b9eefb544eefba6a688c71ce38aea1b4
5
5
  SHA512:
6
- metadata.gz: 7b8a46269c09a36d7b1918f9e12ff01fec05a57366aad780a36589cec423df5d5d77602edba436e771e507164506ea8b54b9f1b6fe20c89d4eb9b19e91e88120
7
- data.tar.gz: d9c71cf85ca8cafad29ac04ab5a9ef35eab1a47f245983b33e05a301019a39cb1db4f78fa4c3954fb0b4b2351dd1aefc1e7eed015e78dac79190a0a4fe8335cc
6
+ metadata.gz: 3aa61610468f41b422de5dd04fd3a8a3046c494b9a0d116470654156f0472139ae67016241d593e72ac8611151b40301ec878435028160cd0b8bf0143bcc867f
7
+ data.tar.gz: 8afcf2d61bb71486c76f17d64b33e2743da7c73c7b0476e26462555ad6fe0f7decc6aad017a6baaeee98c949f0e596ef45f7bf04b3442e7df36c60db81e2f293
data/README.md CHANGED
@@ -30,7 +30,7 @@ Or install it yourself as:
30
30
  ## Usage
31
31
  ```
32
32
  <source>
33
- @type cloudwatch
33
+ @type cloudwatch_ingest
34
34
  region us-east-1
35
35
  sts_enabled true
36
36
  sts_arn arn:aws:iam::123456789012:role/role_in_another_account
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '0.1.10'.freeze
5
+ VERSION = '0.1.11'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -54,8 +54,7 @@ module Fluent::Plugin
54
54
  role_session_name: @sts_session_name
55
55
  )
56
56
 
57
- log.info("Using STS for authentication with source account ARN:
58
- #{@sts_arn}, session name: #{@sts_session_name}")
57
+ log.info("Using STS for authentication with source account ARN: #{@sts_arn}, session name: #{@sts_session_name}") # rubocop:disable all
59
58
  else
60
59
  log.info('Using local instance IAM role for authentication')
61
60
  end
@@ -72,7 +71,7 @@ module Fluent::Plugin
72
71
  private
73
72
 
74
73
  def emit(log_event)
75
- # TODO: I need to do something useful
74
+ log.info(log_event)
76
75
  end
77
76
 
78
77
  def log_groups(log_group_prefix)
@@ -193,7 +192,7 @@ module Fluent::Plugin
193
192
 
194
193
  def initialize(filepath)
195
194
  self.statefile = Pathname.new(filepath).open('w')
196
- unless statefile.exists?
195
+ unless File.exist?(statefile)
197
196
  log.warn("No state file #{statefile} Creating a new one.")
198
197
  begin
199
198
  save
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler