logstash-output-sqs 4.0.3 → 5.0.0

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: 3e49917cc3c13832c699a8f26c8f77befbcd6d2a
4
- data.tar.gz: 90c4bbb0079d2acd5625d591686ad131ea01c838
3
+ metadata.gz: 9b008dd6f526b611717c96ae226b584b1afc450d
4
+ data.tar.gz: 58bdf896df5f7742d55a37059abc4497d2ae6d57
5
5
  SHA512:
6
- metadata.gz: 0a74c733ab310d5ff40c11c277d67cd3dc9d34879c0b2ed56b69bfc369a5271dcd2baebd4dbd21b055d4cdc470dd0a878698e224c0e7e561d9bbdd33db12e021
7
- data.tar.gz: b1827d18305f340f62ef98b6d95fed39341521097c4d5bc3171862dc9843949fa6acc51a247dccd3f1b0811a19ec5f6bf41ed659df27bd70897389d7a7df3773
6
+ metadata.gz: e24a6cb38f628a17f7588292bc19e77fef7db1ad37c8cd7bf3940b72639c1e7c8e0ea4c9573927a230a52f345b6a2c770a5391d7342defc743de5e5dc7fe702b
7
+ data.tar.gz: 287bf712c449d69850ab1fcbf4862d24e0f249ac3b4af2bdc2fcc7960b4e9e60dbbd6e6094b41c3df1881bc170a0498d628419528c9a64c75ac373be4da1535b
@@ -1,5 +1,5 @@
1
- ## 4.0.2
2
- - Docs fixes
1
+ ## 5.0.0
2
+ - Breaking: mark deprecated `batch` and `batch_timeout` options as obsolete
3
3
 
4
4
  ## 4.0.1
5
5
  - Docs: Fix doc generation issue by removing extraneous comments.
@@ -130,18 +130,6 @@ file should look like this:
130
130
  ----------------------------------
131
131
 
132
132
 
133
- [id="plugins-{type}s-{plugin}-batch"]
134
- ===== `batch` (DEPRECATED)
135
-
136
- * DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
137
- * Value type is <<boolean,boolean>>
138
- * Default value is `true`
139
-
140
- Set to `true` to send messages to SQS in batches (with the
141
- `SendMessageBatch` API) or `false` to send messages to SQS individually
142
- (with the `SendMessage` API). The size of the batch is configurable via
143
- `batch_events`.
144
-
145
133
  [id="plugins-{type}s-{plugin}-batch_events"]
146
134
  ===== `batch_events`
147
135
 
@@ -151,15 +139,6 @@ Set to `true` to send messages to SQS in batches (with the
151
139
  The number of events to be sent in each batch. Set this to `1` to disable
152
140
  the batch sending of messages.
153
141
 
154
- [id="plugins-{type}s-{plugin}-batch_timeout"]
155
- ===== `batch_timeout` (DEPRECATED)
156
-
157
- * DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
158
- * Value type is <<number,number>>
159
- * There is no default value for this setting.
160
-
161
-
162
-
163
142
  [id="plugins-{type}s-{plugin}-message_max_size"]
164
143
  ===== `message_max_size`
165
144
 
@@ -70,17 +70,13 @@ class LogStash::Outputs::SQS < LogStash::Outputs::Base
70
70
 
71
71
  concurrency :shared
72
72
 
73
- # Set to `true` to send messages to SQS in batches (with the
74
- # `SendMessageBatch` API) or `false` to send messages to SQS individually
75
- # (with the `SendMessage` API). The size of the batch is configurable via
76
- # `batch_events`.
77
- config :batch, :validate => :boolean, :default => true, :deprecated => true
73
+ config :batch, :validate => :boolean, :default => true, :obsolete => "This option is obsolete. Set 'batch_events' to `1` to disable batching"
78
74
 
79
75
  # The number of events to be sent in each batch. Set this to `1` to disable
80
76
  # the batch sending of messages.
81
77
  config :batch_events, :validate => :number, :default => 10
82
78
 
83
- config :batch_timeout, :validate => :number, :deprecated => 'This setting no longer has any effect.'
79
+ config :batch_timeout, :validate => :number, :obsolete => 'This setting is obsolete.'
84
80
 
85
81
  # The maximum number of bytes for any message sent to SQS. Messages exceeding
86
82
  # this size will be dropped. See
@@ -113,7 +109,7 @@ class LogStash::Outputs::SQS < LogStash::Outputs::Base
113
109
 
114
110
  public
115
111
  def multi_receive_encoded(encoded_events)
116
- if @batch and @batch_events > 1
112
+ if @batch_events > 1
117
113
  multi_receive_encoded_batch(encoded_events)
118
114
  else
119
115
  multi_receive_encoded_single(encoded_events)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-sqs'
4
- s.version = '4.0.3'
4
+ s.version = '5.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Push events to an Amazon Web Services Simple Queue Service (SQS) queue."
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -72,7 +72,7 @@ describe LogStash::Outputs::SQS, :integration => true do
72
72
  end
73
73
 
74
74
  context 'with batching disabled' do
75
- let(:config) { super.merge('batch' => false) }
75
+ let(:config) { super.merge('batch_events' => 1) }
76
76
 
77
77
  it 'publishes to SQS' do
78
78
  subject.multi_receive_encoded(sample_events)
@@ -80,9 +80,7 @@ describe LogStash::Outputs::SQS, :integration => true do
80
80
  end
81
81
  end
82
82
 
83
- context 'with batching enabled' do
84
- let(:config) { super.merge('batch' => true) }
85
-
83
+ context 'with batching enabled (default)' do
86
84
  it 'publishes to SQS' do
87
85
  subject.multi_receive_encoded(sample_events)
88
86
  expect(receive_all_messages(@queue_url).count).to eq(sample_events.count)
@@ -97,24 +97,9 @@ describe LogStash::Outputs::SQS do
97
97
  end
98
98
  end
99
99
 
100
- context 'with batching disabled using the `batch` parameter' do
101
- let(:config) { super.merge('batch' => false) }
102
-
103
- it 'should call send_message' do
104
- expect(sqs).to receive(:send_message).with(:queue_url => queue_url, :message_body => sample_event_encoded).exactly(sample_count).times
105
- subject.multi_receive_encoded(sample_events)
106
- end
107
-
108
- it 'should not call send_message_batch' do
109
- expect(sqs).not_to receive(:send_message_batch)
110
- subject.multi_receive_encoded(sample_events)
111
- end
112
- end
113
-
114
100
  context 'with batching disabled' do
115
101
  let(:config) do
116
102
  super.merge({
117
- 'batch' => true,
118
103
  'batch_events' => 1,
119
104
  })
120
105
  end
@@ -134,7 +119,6 @@ describe LogStash::Outputs::SQS do
134
119
  let(:batch_events) { 3 }
135
120
  let(:config) do
136
121
  super.merge({
137
- 'batch' => true,
138
122
  'batch_events' => batch_events,
139
123
  })
140
124
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-18 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement