logstash-filter-google_appengine 0.115.0 → 0.116.0

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: 215b39c49fa14a4c0a9d64493dfaf9f858d34b47
4
- data.tar.gz: 49324f32a208857e16d95ead80ab1fb7d21673ea
3
+ metadata.gz: c8f386f68af2dab99ab37d536a32f6728418f8f7
4
+ data.tar.gz: c46cf0d40edbca7be34c994e202022a50d7dd9e4
5
5
  SHA512:
6
- metadata.gz: db3ecb57bb93a0f90a651ec72b5dd17ffad71916c56940ba8cc8ccb5da3f2f5760291dcd09e05c57b2ecf5ad0cc83cf6792905e7567da92d6abdbf3ac59bb597
7
- data.tar.gz: d88a4044518e010764182af1a280753056e3d5973446f1ad1ce934eab03f040e93e634f2337ff13f6cf7a8577ed6c3265ad35efff8e7615a39a66b41cfe902cd
6
+ metadata.gz: 89db9ebdf48dc68b20ca8a204701324e3dcca1258b19453f70d42f7e0d942203ce09eb2b825deae02708645388d678d964c1e1c85191fe5b18d763e3bda28449
7
+ data.tar.gz: 8b7aedf88490cb8b0e4e1d28468bbb1bcf56ffc9eae5d53c09de7a9df617e47afd3f000524d2371b3b23b61926f4751f6125b51f61c108b347af4dcd402ebfaf
@@ -21,8 +21,9 @@ class LogStash::Filters::GoogleAppengine < LogStash::Filters::Base
21
21
  payload.delete '@type'
22
22
  payload['type'] = event['type']
23
23
  payload['latencyS'] = to_number(payload['latency'])
24
- payload['pendingTimeS'] = to_number(payload['pendingTime'])
25
-
24
+ if payload['pendingTime']
25
+ payload['pendingTimeS'] = to_number(payload['pendingTime'])
26
+ end
26
27
  lines = payload.delete 'line'
27
28
 
28
29
  if lines
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-google_appengine'
4
- s.version = '0.115.0'
4
+ s.version = '0.116.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This filter may be used to decode via inputs appengine logs"
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/plugin install gemname. This gem is not a stand-alone program"
@@ -25,14 +25,14 @@ describe LogStash::Filters::GoogleAppengine do
25
25
  insist { subject[0]["position"] } == 0
26
26
  insist { subject[0]["@type"] } == nil
27
27
  insist { subject[0]["latencyS"] } == LATENCY_OF_REQUEST
28
- insist { subject[0]["pendingTimeS"] } == 0.0
28
+ insist { subject[0]["pendingTimeS"] } == nil
29
29
 
30
30
  insist { subject[1]["message"] }=="HttpOnlyFilter getSession: add additional Set-Cookie with httpOnly-flag for JSESSIONID\n"
31
31
  insist { subject[1]["id"] } == md5.hexdigest(subject[1]["requestId"] + "1")
32
32
  insist { subject[1]["@type"] } == nil
33
33
  insist { subject[1]["time"] } =="2015-09-03T10:59:40.65Z"
34
34
  insist { subject[1]["position"] } == 1
35
- insist { subject[0]["pendingTimeS"] } == 0.0
35
+ insist { subject[0]["pendingTimeS"] } == nil
36
36
  end
37
37
  end
38
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-google_appengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.115.0
4
+ version: 0.116.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Small Improvements