fluent-plugin-aws-sqs 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fluent/plugin/in_sqs.rb +9 -3
- data/lib/fluent/plugin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c1deff36f3e9541ecf48e4392fc7b8fe437415352812c3821880a2feaca1f1
|
4
|
+
data.tar.gz: 643e7c3ba75ce25bacb798a46d9cc321d51c5ee41241553cc2ce93bf4f5bea3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2cc8280be51ccd4249220b36d3b341dcf27806e2ab7014544c8e087cd81c060ca31744e319cf8c66549ad92c1116e0b01de0a9eed8d0af0c3b3240e78ab244f
|
7
|
+
data.tar.gz: 48181ebda256c55f9b83f3af1ed8d0c7f4650b82aaa89dd95368339f5cbb0323881f8cfc2d9197fac9ba6c30b865312d2233b8338dbe3b621695941a914c4856
|
data/Gemfile.lock
CHANGED
data/lib/fluent/plugin/in_sqs.rb
CHANGED
@@ -18,6 +18,7 @@ module Fluent::Plugin
|
|
18
18
|
config_param :visibility_timeout, :integer, default: nil
|
19
19
|
config_param :delete_message, :bool, default: false
|
20
20
|
config_param :stub_responses, :bool, default: false
|
21
|
+
config_param :attribute_name_to_extract, :string, default: nil
|
21
22
|
|
22
23
|
def configure(conf)
|
23
24
|
super
|
@@ -73,14 +74,19 @@ module Fluent::Plugin
|
|
73
74
|
end
|
74
75
|
|
75
76
|
def parse_message(message)
|
76
|
-
{
|
77
|
+
record = {
|
77
78
|
'body' => message.body.to_s,
|
78
79
|
'receipt_handle' => message.receipt_handle.to_s,
|
79
80
|
'message_id' => message.message_id.to_s,
|
80
81
|
'md5_of_body' => message.md5_of_body.to_s,
|
81
|
-
'queue_url' => message.queue_url.to_s
|
82
|
-
'sender_id' => message.attributes['SenderId'].to_s
|
82
|
+
'queue_url' => message.queue_url.to_s
|
83
83
|
}
|
84
|
+
|
85
|
+
if @attribute_name_to_extract.to_s.strip.length > 0
|
86
|
+
record[@attribute_name_to_extract] = message.attributes[attribute_name_to_extract].to_s
|
87
|
+
end
|
88
|
+
|
89
|
+
record
|
84
90
|
end
|
85
91
|
end
|
86
92
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-aws-sqs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shai Moria
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-09-
|
13
|
+
date: 2019-09-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|