logstash-output-cloudwatch 3.0.3 → 3.0.4

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: 238bdf434ae08b2eb5090a823ce3103cf916ea75
4
- data.tar.gz: ae4ee47f2363905090a3a7ced0d85d2d55c41371
3
+ metadata.gz: 06ba2d836bb306142cd381fb4b2d0e7a820d573f
4
+ data.tar.gz: 616e1a673b73112bdd7892198111c43822945d6d
5
5
  SHA512:
6
- metadata.gz: 2462076296356db64d9ac75251166ca47b24ccdb95ff720d08620583ca1e76632b386529e553854a405777743573334d69e13f94fc7929b73c25965b7219cea0
7
- data.tar.gz: 8e3fdc2cedd7563be1a2d7c15245ec9e72eefb3422f567f9d777a1573d50f312e0c5edae3d84e6a40b70027f3e3e483dcc14cb14e6d4f4d7d95b26e023dec7a9
6
+ metadata.gz: cdd220a70723b17954ea5015985734d05f729d45168f49d5a6764d50e306195a69f15b06385ad90e78e485f68ca46c59ef4a956cd4d96f19a5dc0fa4cf684a9e
7
+ data.tar.gz: e61785036233e12668ba4bb8e0f2e336d1248a501c755a71d1cad5c4e62c04b34ca4cb3d2e54ac8e1a1afc7e42553ac19fbe210f36bb32784078992b2bcb9869
@@ -1,3 +1,6 @@
1
+ ## 3.0.4
2
+ - Fix some remaining uses of the old event api. blocking the use of this plugin
3
+
1
4
  ## 3.0.3
2
5
  - Move some log messages from info to debug to avoid noise
3
6
 
@@ -281,7 +281,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
281
281
  aggregates[namespace] = {}
282
282
  end
283
283
 
284
- dims = event[@field_dimensions]
284
+ dims = event.get(@field_dimensions)
285
285
  if (dims) # event provides dimensions
286
286
  # validate the structure
287
287
  if (!dims.is_a?(Array) || dims.length == 0 || (dims.length % 2) != 0)
@@ -333,13 +333,13 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
333
333
 
334
334
  private
335
335
  def field(event, fieldname)
336
- if !event[fieldname]
336
+ if !event.get(fieldname)
337
337
  return nil
338
338
  else
339
- if event[fieldname].is_a?(Array)
340
- return event[fieldname][0]
339
+ if event.get(fieldname).is_a?(Array)
340
+ return event.get(fieldname).first
341
341
  else
342
- return event[fieldname]
342
+ return event.get(fieldname)
343
343
  end
344
344
  end
345
345
  end # def field
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-cloudwatch'
4
- s.version = '3.0.3'
4
+ s.version = '3.0.4'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output lets you aggregate and send metric data to AWS CloudWatch"
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"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-15 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement