logstash-codec-protobuf 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +15 -2
- data/docs/index.asciidoc +8 -0
- data/lib/logstash/codecs/protobuf.rb +154 -58
- data/logstash-codec-protobuf.gemspec +1 -2
- data/spec/codecs/protobuf3_spec.rb +143 -48
- data/spec/codecs/protobuf_spec.rb +69 -41
- data/spec/helpers/pb2/event.pb.rb +19 -0
- data/spec/helpers/pb2/event.proto +12 -0
- data/spec/helpers/pb2/header/header.pb.rb +16 -0
- data/spec/helpers/pb2/header/header.proto +8 -0
- data/spec/helpers/pb3/header/header.proto3 +7 -0
- data/spec/helpers/pb3/header/header_pb.rb +12 -0
- data/spec/helpers/pb3/messageA.proto3 +12 -0
- data/spec/helpers/pb3/messageA_pb.rb +16 -0
- data/spec/helpers/pb3/messageB.proto3 +12 -0
- data/spec/helpers/pb3/messageB_pb.rb +16 -0
- metadata +23 -3
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
|
4
|
+
require 'protocol_buffers'
|
5
|
+
|
6
|
+
begin; require 'header/header.pb'; rescue LoadError; end
|
7
|
+
|
8
|
+
module Logging
|
9
|
+
# forward declarations
|
10
|
+
class Event < ::ProtocolBuffers::Message; end
|
11
|
+
|
12
|
+
class Event < ::ProtocolBuffers::Message
|
13
|
+
set_fully_qualified_name "Logging.Event"
|
14
|
+
|
15
|
+
optional :string, :name, 1
|
16
|
+
optional ::Grpc::Header, :header, 2
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
|
4
|
+
require 'protocol_buffers'
|
5
|
+
|
6
|
+
module Grpc
|
7
|
+
# forward declarations
|
8
|
+
class Header < ::ProtocolBuffers::Message; end
|
9
|
+
|
10
|
+
class Header < ::ProtocolBuffers::Message
|
11
|
+
set_fully_qualified_name "grpc.Header"
|
12
|
+
|
13
|
+
optional :string, :protocol, 1
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: header/header.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "Header" do
|
8
|
+
map :name, :string, :string, 3
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
Header = Google::Protobuf::DescriptorPool.generated_pool.lookup("Header").msgclass
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: messageA.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'header/header_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "A.MessageA" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
optional :header, :message, 2, "Header"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module A
|
15
|
+
MessageA = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.MessageA").msgclass
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: messageB.proto3
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'header/header_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "B.MessageB" do
|
9
|
+
optional :name, :string, 1
|
10
|
+
optional :header, :message, 2, "Header"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module B
|
15
|
+
MessageB = Google::Protobuf::DescriptorPool.generated_pool.lookup("B.MessageB").msgclass
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inga Feick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,12 +94,22 @@ files:
|
|
94
94
|
- spec/codecs/protobuf_spec.rb
|
95
95
|
- spec/helpers/pb2/ColourTestcase.pb.rb
|
96
96
|
- spec/helpers/pb2/ColourTestcase.proto
|
97
|
+
- spec/helpers/pb2/event.pb.rb
|
98
|
+
- spec/helpers/pb2/event.proto
|
99
|
+
- spec/helpers/pb2/header/header.pb.rb
|
100
|
+
- spec/helpers/pb2/header/header.proto
|
97
101
|
- spec/helpers/pb2/human.pb.rb
|
98
102
|
- spec/helpers/pb2/unicorn.pb.rb
|
99
103
|
- spec/helpers/pb2/unicorn_event.pb.rb
|
100
104
|
- spec/helpers/pb3/ProbeResult_pb.rb
|
101
105
|
- spec/helpers/pb3/dnsmessage_pb.rb
|
106
|
+
- spec/helpers/pb3/header/header.proto3
|
107
|
+
- spec/helpers/pb3/header/header_pb.rb
|
102
108
|
- spec/helpers/pb3/integertest_pb.rb
|
109
|
+
- spec/helpers/pb3/messageA.proto3
|
110
|
+
- spec/helpers/pb3/messageA_pb.rb
|
111
|
+
- spec/helpers/pb3/messageB.proto3
|
112
|
+
- spec/helpers/pb3/messageB_pb.rb
|
103
113
|
- spec/helpers/pb3/unicorn.proto3
|
104
114
|
- spec/helpers/pb3/unicorn_pb.rb
|
105
115
|
homepage:
|
@@ -124,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
134
|
version: '0'
|
125
135
|
requirements: []
|
126
136
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.6.
|
137
|
+
rubygems_version: 2.6.14.1
|
128
138
|
signing_key:
|
129
139
|
specification_version: 4
|
130
140
|
summary: Reads protobuf messages and converts to Logstash Events
|
@@ -133,11 +143,21 @@ test_files:
|
|
133
143
|
- spec/codecs/protobuf_spec.rb
|
134
144
|
- spec/helpers/pb2/ColourTestcase.pb.rb
|
135
145
|
- spec/helpers/pb2/ColourTestcase.proto
|
146
|
+
- spec/helpers/pb2/event.pb.rb
|
147
|
+
- spec/helpers/pb2/event.proto
|
148
|
+
- spec/helpers/pb2/header/header.pb.rb
|
149
|
+
- spec/helpers/pb2/header/header.proto
|
136
150
|
- spec/helpers/pb2/human.pb.rb
|
137
151
|
- spec/helpers/pb2/unicorn.pb.rb
|
138
152
|
- spec/helpers/pb2/unicorn_event.pb.rb
|
139
153
|
- spec/helpers/pb3/ProbeResult_pb.rb
|
140
154
|
- spec/helpers/pb3/dnsmessage_pb.rb
|
155
|
+
- spec/helpers/pb3/header/header.proto3
|
156
|
+
- spec/helpers/pb3/header/header_pb.rb
|
141
157
|
- spec/helpers/pb3/integertest_pb.rb
|
158
|
+
- spec/helpers/pb3/messageA.proto3
|
159
|
+
- spec/helpers/pb3/messageA_pb.rb
|
160
|
+
- spec/helpers/pb3/messageB.proto3
|
161
|
+
- spec/helpers/pb3/messageB_pb.rb
|
142
162
|
- spec/helpers/pb3/unicorn.proto3
|
143
163
|
- spec/helpers/pb3/unicorn_pb.rb
|