fluent-plugin-firehose 0.0.3 → 0.0.4

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: 80aea97a1b698ed1cc0edc4827be3bf82d8e5e3f
4
- data.tar.gz: d7ad3f1908de80cda78411339a530906c1b9850a
3
+ metadata.gz: e0da463c98bbb7c5d2bb4454164b31b83fce2642
4
+ data.tar.gz: 44684222f2f5449b89f9b7c7d44856e05da275c3
5
5
  SHA512:
6
- metadata.gz: 207d33482999997100bdc3d4c488511eedb3ff4945abc3c59878e180d805d2f4752971522515ba6d247ee9814833594aeeb04be8ad8301452f71254ef5b9ad8e
7
- data.tar.gz: dfb754604066929ae1777e8d96b79eddd6317daf71dddc1f68cb6c7d7070078cc0f838dba6314be531255d52fd3c1a428eb41bee5142f5457a5b600d2d7da209
6
+ metadata.gz: e00dcb09b1c27b380b15abe13b66f76d1e5b4ebef17a403dbfad6c0f70517860e128de85dab913c8710b851048b437006e28c121a200a5570939030813ba8df6
7
+ data.tar.gz: 6a561ae5b3c67c74134bdbf42d2aa5181ffa920227e404e3622cb2331ae1a0de0fdb86fc5345de1c60c49f9077da6020b08383c76a70f72668f49e7b8008b03a
@@ -27,7 +27,7 @@ module FluentPluginFirehose
27
27
  include Fluent::SetTimeKeyMixin
28
28
  include Fluent::SetTagKeyMixin
29
29
 
30
- USER_AGENT_NAME = 'fluent-plugin-kinesis-output-filter'
30
+ USER_AGENT_NAME = 'fluent-plugin-firehose-output'
31
31
  PUT_RECORD_MAX_DATA_SIZE = 1000 * 1024 # 1000 KB
32
32
  PUT_RECORD_BATCH_MAX_COUNT = 500
33
33
  PUT_RECORD_BATCH_MAX_DATA_SIZE = 4 * 1024 * 1024 # 4 MB
@@ -116,7 +116,7 @@ module FluentPluginFirehose
116
116
  else
117
117
  records_array = build_records_array_to_put(data_list)
118
118
  records_array.each{|records|
119
- put_records_with_retry(records)
119
+ put_record_batch_with_retry(records)
120
120
  }
121
121
  end
122
122
  end
@@ -146,7 +146,7 @@ module FluentPluginFirehose
146
146
  credentials = Aws::AssumeRoleCredentials.new(
147
147
  client: Aws::STS::Client.new(options),
148
148
  role_arn: @role_arn,
149
- role_session_name: "aws-fluent-plugin-kinesis",
149
+ role_session_name: "aws-fluent-plugin-firehose",
150
150
  external_id: @external_id,
151
151
  duration_seconds: 60 * 60
152
152
  )
@@ -216,8 +216,8 @@ module FluentPluginFirehose
216
216
  records_array
217
217
  end
218
218
 
219
- def put_records_with_retry(records,retry_count=0)
220
- response = @client.put_records(
219
+ def put_record_batch_with_retry(records,retry_count=0)
220
+ response = @client.put_record_batch(
221
221
  records: records,
222
222
  delivery_stream_name: @delivery_stream_name
223
223
  )
@@ -234,7 +234,7 @@ module FluentPluginFirehose
234
234
  sleep(calculate_sleep_duration(retry_count))
235
235
  retry_count += 1
236
236
  log.warn sprintf('Retrying to put records. Retry count: %d', retry_count)
237
- put_records_with_retry(
237
+ put_record_batch_with_retry(
238
238
  failed_records.map{|record| record[:body]},
239
239
  retry_count
240
240
  )
@@ -13,5 +13,5 @@
13
13
  # language governing permissions and limitations under the License.
14
14
 
15
15
  module FluentPluginFirehose
16
- VERSION = '0.0.3'
16
+ VERSION = '0.0.4'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-firehose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ji Oh Yoo