fluent-plugin-sqs 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d81de3c9413a30d0e616e7de109f7aea13407c3
4
- data.tar.gz: 3890397f786f053f94926dafb264c1a78e7dd33d
3
+ metadata.gz: 5f161e594dede0f0faa3968a5ccd1d0bdbdab953
4
+ data.tar.gz: 7683c7284219c1d6c0bfb67610bcf2b3232a981e
5
5
  SHA512:
6
- metadata.gz: 047d392699bd280297b17419f8b90e8207be7d9e9088c12a91d9e76f632288f2d39cc80ddfeec09dfc71c8b6478fa44027d9e9fd962c03fdc22d3bdab9984060
7
- data.tar.gz: 14cdc68b91cae525338083597bf08ba42be04e6aca24ae340a261abed16a39f3248af5101dfa203906ec634a4a45b6a52fe21ae0bede80d94c3f85920bb5eabd
6
+ metadata.gz: d01cbf2271a256c8b30b8417a2c772c4947231ef05106adf092b5bb656679b5cc20674a1784c20e1efd0c8cbf241a66234257d6ef1e2ba162ac27cc15f93cee3
7
+ data.tar.gz: eae155c6624f3f5916c556ea63ea76ce8155c018c283785536e4e6a750fb1c210c173716ba5aaff00dcb3747871d04fb6ab7a99d2b545b1169780ae7028da5a7
data/README.rdoc CHANGED
@@ -23,9 +23,12 @@ Read events from from amazon SQS.
23
23
 
24
24
  # following attibutes are required
25
25
 
26
+ queue_name {queue_instance_key}
27
+
28
+ # following attibutes are required if you don't use IAM Role nor export credentials to ENV
29
+
26
30
  aws_key_id {your_aws_key_id}
27
31
  aws_sec_key {your_aws_secret_key}
28
- queue_name {queue_instance_key}
29
32
 
30
33
  # following attibutes are optional
31
34
   
@@ -55,9 +58,12 @@ Read events from from amazon SQS.
55
58
 
56
59
  # following attibutes are required
57
60
 
61
+ sqs_url {queue_url}
62
+
63
+ # following attibutes are required if you don't use IAM Role nor export credentials to ENV
64
+
58
65
  aws_key_id {your_aws_key_id}
59
66
  aws_sec_key {your_aws_secret_key}
60
- sqs_url {queue_url}
61
67
 
62
68
  # following attibutes are optional
63
69
   
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -9,8 +9,8 @@ module Fluent
9
9
  super
10
10
  end
11
11
 
12
- config_param :aws_key_id, :string
13
- config_param :aws_sec_key, :string
12
+ config_param :aws_key_id, :string, :default => nil
13
+ config_param :aws_sec_key, :string, :default => nil
14
14
  config_param :tag, :string
15
15
  config_param :sqs_endpoint, :string, :default => 'sqs.ap-northeast-1.amazonaws.com'
16
16
  config_param :sqs_url, :string
@@ -12,22 +12,22 @@ module Fluent
12
12
  include SetTimeKeyMixin
13
13
  config_set_default :include_time_key, true
14
14
 
15
- config_param :aws_key_id, :string
16
- config_param :aws_sec_key, :string
15
+ config_param :aws_key_id, :string, :default => nil
16
+ config_param :aws_sec_key, :string, :default => nil
17
17
  config_param :queue_name, :string
18
18
  config_param :sqs_endpoint, :string, :default => 'sqs.ap-northeast-1.amazonaws.com'
19
19
  config_param :delay_seconds, :integer, :default => 0
20
20
  config_param :include_tag, :bool, :default => true
21
21
  config_param :tag_property_name, :string, :default => '__tag'
22
22
  #config_param :buffer_queue_limit, :integer, :default => 10
23
-
23
+
24
24
  def configure(conf)
25
25
  super
26
26
  end
27
27
 
28
28
  def start
29
29
  super
30
-
30
+
31
31
  AWS.config(
32
32
  :access_key_id => @aws_key_id,
33
33
  :secret_access_key => @aws_sec_key)
@@ -35,13 +35,13 @@ module Fluent
35
35
  @sqs = AWS::SQS.new(
36
36
  :sqs_endpoint => @sqs_endpoint)
37
37
  @queue = @sqs.queues.create(@queue_name)
38
-
38
+
39
39
  end
40
40
 
41
41
  def shutdown
42
42
  super
43
43
  end
44
-
44
+
45
45
  def format(tag, time, record)
46
46
  if @include_tag then
47
47
  record[@tag_property_name] = tag
@@ -49,7 +49,7 @@ module Fluent
49
49
 
50
50
  record.to_msgpack
51
51
  end
52
-
52
+
53
53
  def write(chunk)
54
54
  records = []
55
55
  chunk.msgpack_each {|record| records << { :message_body => record.to_json, :delay_seconds => @delay_seconds } }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Odagiri