fluent-plugin-netflow 1.0.0.rc1 → 1.0.0.rc2

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: 4d4c63738c6b09eef497f26c714a2834fdce3e78
4
- data.tar.gz: d6883ea9b5f1f7ab29cec7557ca305c5260e74b5
3
+ metadata.gz: 78e9dab567c3ee1eff5d5b30e7eede743e4a4296
4
+ data.tar.gz: 53a5b634e3ed77404d31ccf24ed8910b27406f79
5
5
  SHA512:
6
- metadata.gz: 9c0577832be1c6aab86590a93df190bdb02a532ad8a3ab0f99925ae18f27b4a927c9cc76fb97dcd0aa4fa900e2e58a26726ec3e08b057c08ba73f19157a2b282
7
- data.tar.gz: '0712933f971b7aa748e8b97dd1ce0ee0526ddadc110d8db0ccd6b536f78ba01ffbbd17a6a3dd481ec3d057628c401d76b9c9ea8f6e094f1a0907038be43e1d68'
6
+ metadata.gz: 487882f6056cdd022238fa39623d92ff0d5c5460220e02d0639d58e756add067cce05516b944c29016e964c8b1946280458c76fd11d18668856098a9bae18a07
7
+ data.tar.gz: 92df36281eea0ac2380effed945ef0e84d48ffffd6d0a2caf5ac401ca20baaa6d3bd9e87aa42e158448b433b042fd412705ffd382754832230dd0294c6b161ed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.rc1
1
+ 1.0.0.rc2
@@ -145,7 +145,7 @@ module Fluent
145
145
  sampling_algorithm = (sampling & 0b1100000000000000) >> 14
146
146
  sampling_interval = sampling & 0b0011111111111111
147
147
 
148
- time = Time.at(unix_sec, unix_nsec / 1000).to_i # TODO: Fluent::EventTime
148
+ time = Fluent::EventTime.new(unix_sec.to_i, unix_nsec.to_i)
149
149
 
150
150
  records_bytes = payload.bytesize - NETFLOW_V5_HEADER_BYTES
151
151
 
@@ -289,7 +289,7 @@ module Fluent
289
289
  next
290
290
  end
291
291
 
292
- time = pdu.unix_sec # TODO: Fluent::EventTime (see: forV5)
292
+ time = Fluent::EventTime.new(pdu.unix_sec.to_i)
293
293
  event = {}
294
294
 
295
295
  # Fewer fields in the v9 header
@@ -219,6 +219,7 @@ class NetflowParserTest < Test::Unit::TestCase
219
219
  end
220
220
 
221
221
  assert_equal 1, parsed.size
222
+ assert_instance_of Fluent::EventTime, parsed.first[0]
222
223
  assert_equal time1, parsed.first[0]
223
224
 
224
225
  event = parsed.first[1]
@@ -68,6 +68,7 @@ class Netflow9ParserTest < Test::Unit::TestCase
68
68
  end
69
69
 
70
70
  assert_equal 1, parsed.size
71
+ assert_instance_of Fluent::EventTime, parsed.first[0]
71
72
  assert_equal Time.parse('2016-02-12T04:02:25Z').to_i, parsed.first[0]
72
73
  expected_record = {
73
74
  # header
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-netflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: 1.3.1
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.5.2
128
+ rubygems_version: 2.6.11
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Netflow plugin for Fluentd