ffwd 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/ffwd/plugin/json.rb +2 -2
- data/lib/ffwd/plugin/json/connection.rb +11 -6
- data/lib/ffwd/version.rb +1 -1
- metadata +58 -58
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDAxMmI5NWEwMzNhOTJjNmUyZTJiNDc5MGNhM2I3NWY1NWIwMjI2MQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDFjMDgxMTcyNzdkYmVmYWUxMzZlNDdmZjY1ZjUxYWE4ZTA3YjQwYg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjJjMTkyNzQ5YjMwMmI5YzZmNWM0ZTgzNDkyYzAxOTgxMzA3NmFjYzkzYzNj
|
10
|
+
ZTNjMWI4ZjkyYzdlZmNlMWRiMDEyM2Q3YzMyMjJhNGJlNjYyMWI2NWQ0OTQ0
|
11
|
+
ZjIxYWVhOTczOGQ5ODBiNTk3ZTcyZjgwMGRjNmI0MWEzN2VhYjQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzllOTIxOGM5YjJiYjY1NDM4NDA2Zjc0NjBhMjhjY2EyMTAyMTFkY2QxNjg3
|
14
|
+
YTc2MTdjOWZlYTU4MjZhZjFiNjNlN2M4NGI4NWY3M2M4ZDk5YzI3Y2E3Mjhi
|
15
|
+
YzgwYjQ2YTcyNzI1ZGRmN2QwNzBhYTNiMWJhYzRiNWZjZTNlMTQ=
|
data/lib/ffwd/plugin/json.rb
CHANGED
@@ -61,7 +61,7 @@ module FFWD::Plugin::JSON
|
|
61
61
|
def receive_line data
|
62
62
|
receive_json data
|
63
63
|
rescue => e
|
64
|
-
log.error "Failed to receive JSON: #{data
|
64
|
+
log.error "Failed to receive JSON: #{data}: #{e}"
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -75,7 +75,7 @@ module FFWD::Plugin::JSON
|
|
75
75
|
def receive_data data
|
76
76
|
receive_json data
|
77
77
|
rescue => e
|
78
|
-
log.error "Failed to receive JSON: #{data
|
78
|
+
log.error "Failed to receive JSON: #{data}: #{e}"
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
@@ -67,20 +67,25 @@ module FFWD::Plugin::JSON
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def read_tags d, source
|
70
|
-
return if (tags =
|
70
|
+
return if (tags = source["tags"]).nil?
|
71
|
+
|
72
|
+
unless tags.is_a? Array
|
73
|
+
raise "'tags' must be an array"
|
74
|
+
end
|
75
|
+
|
71
76
|
d[:tags] = tags.to_set
|
72
77
|
end
|
73
78
|
|
74
79
|
def read_time d, source
|
75
|
-
return if (time =
|
80
|
+
return if (time = source["time"]).nil?
|
76
81
|
d[:time] = Time.at time
|
77
82
|
end
|
78
83
|
|
79
84
|
def read_metric data
|
80
85
|
d = {}
|
81
86
|
|
82
|
-
read_tags d, data
|
83
|
-
read_time d, data
|
87
|
+
read_tags d, data
|
88
|
+
read_time d, data
|
84
89
|
|
85
90
|
METRIC_FIELDS.each do |from, to|
|
86
91
|
next if (v = data[from]).nil?
|
@@ -93,8 +98,8 @@ module FFWD::Plugin::JSON
|
|
93
98
|
def read_event data
|
94
99
|
d = {}
|
95
100
|
|
96
|
-
read_tags d, data
|
97
|
-
read_time d, data
|
101
|
+
read_tags d, data
|
102
|
+
read_time d, data
|
98
103
|
|
99
104
|
EVENT_FIELDS.each do |from, to|
|
100
105
|
next if (v = data[from]).nil?
|
data/lib/ffwd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffwd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John-John Tedro
|
@@ -9,62 +9,62 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - '>='
|
18
|
+
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - '>='
|
25
|
+
- - ! '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - '>='
|
32
|
+
- - ! '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - '>='
|
39
|
+
- - ! '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec-mocks
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - '>='
|
46
|
+
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - '>='
|
53
|
+
- - ! '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: autoversion
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - '>='
|
60
|
+
- - ! '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - '>='
|
67
|
+
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
description:
|
@@ -77,66 +77,66 @@ executables:
|
|
77
77
|
extensions: []
|
78
78
|
extra_rdoc_files: []
|
79
79
|
files:
|
80
|
-
- bin/fwc
|
81
80
|
- bin/ffwd
|
82
|
-
-
|
81
|
+
- bin/fwc
|
82
|
+
- lib/em/all.rb
|
83
|
+
- lib/em/protocols/frame_object_protocol.rb
|
83
84
|
- lib/ffwd.rb
|
84
|
-
- lib/ffwd/
|
85
|
-
- lib/ffwd/
|
86
|
-
- lib/ffwd/
|
87
|
-
- lib/ffwd/
|
88
|
-
- lib/ffwd/
|
85
|
+
- lib/ffwd/channel.rb
|
86
|
+
- lib/ffwd/connection.rb
|
87
|
+
- lib/ffwd/core.rb
|
88
|
+
- lib/ffwd/core/emitter.rb
|
89
|
+
- lib/ffwd/core/interface.rb
|
90
|
+
- lib/ffwd/core/processor.rb
|
91
|
+
- lib/ffwd/core/reporter.rb
|
92
|
+
- lib/ffwd/debug.rb
|
89
93
|
- lib/ffwd/debug/connection.rb
|
90
94
|
- lib/ffwd/debug/monitor_session.rb
|
91
|
-
- lib/ffwd/
|
92
|
-
- lib/ffwd/
|
95
|
+
- lib/ffwd/debug/tcp.rb
|
96
|
+
- lib/ffwd/event.rb
|
97
|
+
- lib/ffwd/event_emitter.rb
|
98
|
+
- lib/ffwd/flushing_output.rb
|
99
|
+
- lib/ffwd/flushing_output_hook.rb
|
100
|
+
- lib/ffwd/handler.rb
|
101
|
+
- lib/ffwd/lifecycle.rb
|
102
|
+
- lib/ffwd/logging.rb
|
103
|
+
- lib/ffwd/metric.rb
|
104
|
+
- lib/ffwd/metric_emitter.rb
|
105
|
+
- lib/ffwd/plugin.rb
|
93
106
|
- lib/ffwd/plugin/json.rb
|
94
|
-
- lib/ffwd/plugin/log/writer.rb
|
95
|
-
- lib/ffwd/plugin/log.rb
|
96
107
|
- lib/ffwd/plugin/json/connection.rb
|
97
|
-
- lib/ffwd/
|
98
|
-
- lib/ffwd/
|
99
|
-
- lib/ffwd/
|
100
|
-
- lib/ffwd/
|
101
|
-
- lib/ffwd/
|
108
|
+
- lib/ffwd/plugin/log.rb
|
109
|
+
- lib/ffwd/plugin/log/writer.rb
|
110
|
+
- lib/ffwd/plugin_channel.rb
|
111
|
+
- lib/ffwd/plugin_loader.rb
|
112
|
+
- lib/ffwd/processor.rb
|
113
|
+
- lib/ffwd/processor/count.rb
|
114
|
+
- lib/ffwd/processor/histogram.rb
|
115
|
+
- lib/ffwd/processor/rate.rb
|
116
|
+
- lib/ffwd/producing_client.rb
|
117
|
+
- lib/ffwd/protocol.rb
|
102
118
|
- lib/ffwd/protocol/tcp.rb
|
103
119
|
- lib/ffwd/protocol/tcp/bind.rb
|
104
|
-
- lib/ffwd/protocol/tcp/plain_connect.rb
|
105
|
-
- lib/ffwd/protocol/tcp/flushing_connect.rb
|
106
120
|
- lib/ffwd/protocol/tcp/connection.rb
|
121
|
+
- lib/ffwd/protocol/tcp/flushing_connect.rb
|
122
|
+
- lib/ffwd/protocol/tcp/plain_connect.rb
|
123
|
+
- lib/ffwd/protocol/udp.rb
|
107
124
|
- lib/ffwd/protocol/udp/bind.rb
|
108
125
|
- lib/ffwd/protocol/udp/connect.rb
|
109
|
-
- lib/ffwd/protocol/udp.rb
|
110
126
|
- lib/ffwd/reporter.rb
|
111
|
-
- lib/ffwd/plugin_loader.rb
|
112
|
-
- lib/ffwd/schema/spotify100.rb
|
113
|
-
- lib/ffwd/schema/default.rb
|
114
|
-
- lib/ffwd/metric_emitter.rb
|
115
|
-
- lib/ffwd/schema.rb
|
116
|
-
- lib/ffwd/event_emitter.rb
|
117
|
-
- lib/ffwd/core/processor.rb
|
118
|
-
- lib/ffwd/core/interface.rb
|
119
|
-
- lib/ffwd/core/reporter.rb
|
120
|
-
- lib/ffwd/core/emitter.rb
|
121
|
-
- lib/ffwd/handler.rb
|
122
|
-
- lib/ffwd/flushing_output.rb
|
123
|
-
- lib/ffwd/flushing_output_hook.rb
|
124
|
-
- lib/ffwd/version.rb
|
125
|
-
- lib/ffwd/core.rb
|
126
|
-
- lib/ffwd/processor/rate.rb
|
127
|
-
- lib/ffwd/processor/count.rb
|
128
|
-
- lib/ffwd/processor/histogram.rb
|
129
|
-
- lib/ffwd/debug.rb
|
130
127
|
- lib/ffwd/retrier.rb
|
131
|
-
- lib/ffwd/
|
132
|
-
- lib/ffwd/
|
128
|
+
- lib/ffwd/schema.rb
|
129
|
+
- lib/ffwd/schema/default.rb
|
130
|
+
- lib/ffwd/schema/spotify100.rb
|
131
|
+
- lib/ffwd/statistics/collector.rb
|
132
|
+
- lib/ffwd/statistics/system_statistics.rb
|
133
|
+
- lib/ffwd/test/protocol.rb
|
134
|
+
- lib/ffwd/tunnel/plugin.rb
|
133
135
|
- lib/ffwd/tunnel/tcp.rb
|
134
136
|
- lib/ffwd/tunnel/udp.rb
|
135
|
-
- lib/ffwd/
|
136
|
-
- lib/ffwd/
|
137
|
-
- lib/
|
138
|
-
- lib/em/protocols/frame_object_protocol.rb
|
139
|
-
- lib/em/all.rb
|
137
|
+
- lib/ffwd/utils.rb
|
138
|
+
- lib/ffwd/version.rb
|
139
|
+
- lib/fwc.rb
|
140
140
|
homepage: https://github.com/spotify/ffwd
|
141
141
|
licenses:
|
142
142
|
- Apache 2.0
|
@@ -147,17 +147,17 @@ require_paths:
|
|
147
147
|
- lib
|
148
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - '>='
|
150
|
+
- - ! '>='
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- - '>='
|
155
|
+
- - ! '>='
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.2.2
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Core framework for the FastForward Daemon.
|