rookout 0.1.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.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +12 -0
  3. data/bin/rookout +30 -0
  4. data/lib/rookout.rb +18 -0
  5. data/lib/rookout/augs/actions/action.rb +11 -0
  6. data/lib/rookout/augs/actions/action_run_processor.rb +29 -0
  7. data/lib/rookout/augs/aug.rb +121 -0
  8. data/lib/rookout/augs/aug_factory.rb +69 -0
  9. data/lib/rookout/augs/aug_rate_limiter.rb +96 -0
  10. data/lib/rookout/augs/augs_manager.rb +77 -0
  11. data/lib/rookout/augs/conditions/condition.rb +15 -0
  12. data/lib/rookout/augs/locations/location.rb +11 -0
  13. data/lib/rookout/augs/locations/location_file_line.rb +26 -0
  14. data/lib/rookout/com_ws/agent_com_ws.rb +221 -0
  15. data/lib/rookout/com_ws/backoff.rb +35 -0
  16. data/lib/rookout/com_ws/command_handler.rb +22 -0
  17. data/lib/rookout/com_ws/git.rb +53 -0
  18. data/lib/rookout/com_ws/information.rb +85 -0
  19. data/lib/rookout/com_ws/output.rb +135 -0
  20. data/lib/rookout/com_ws/token_bucket.rb +36 -0
  21. data/lib/rookout/config.rb +55 -0
  22. data/lib/rookout/exceptions.rb +140 -0
  23. data/lib/rookout/interface.rb +140 -0
  24. data/lib/rookout/logger.rb +158 -0
  25. data/lib/rookout/processor/namespace_serializer.rb +26 -0
  26. data/lib/rookout/processor/namespaces/container_namespace.rb +45 -0
  27. data/lib/rookout/processor/namespaces/frame_namespace.rb +65 -0
  28. data/lib/rookout/processor/namespaces/namespace.rb +28 -0
  29. data/lib/rookout/processor/namespaces/noop_namespace.rb +32 -0
  30. data/lib/rookout/processor/namespaces/ruby_object_namespace.rb +97 -0
  31. data/lib/rookout/processor/namespaces/ruby_object_serializer.rb +208 -0
  32. data/lib/rookout/processor/namespaces/ruby_utils_namespace.rb +65 -0
  33. data/lib/rookout/processor/namespaces/stack_namespace.rb +30 -0
  34. data/lib/rookout/processor/namespaces/traceback_namespace.rb +40 -0
  35. data/lib/rookout/processor/operations/operation.rb +11 -0
  36. data/lib/rookout/processor/operations/set_operation.rb +48 -0
  37. data/lib/rookout/processor/paths/arithmetic_path.rb +84 -0
  38. data/lib/rookout/processor/paths/canopy/actions.rb +184 -0
  39. data/lib/rookout/processor/paths/canopy/consts.rb +82 -0
  40. data/lib/rookout/processor/paths/canopy/maps.rb +2837 -0
  41. data/lib/rookout/processor/paths/canopy/markers.rb +186 -0
  42. data/lib/rookout/processor/paths/path.rb +15 -0
  43. data/lib/rookout/processor/processor.rb +34 -0
  44. data/lib/rookout/processor/processor_factory.rb +23 -0
  45. data/lib/rookout/processor/rook_error.rb +45 -0
  46. data/lib/rookout/protobuf/.gitignore +0 -0
  47. data/lib/rookout/protobuf/agent_info_pb.rb +68 -0
  48. data/lib/rookout/protobuf/controller_info_pb.rb +29 -0
  49. data/lib/rookout/protobuf/envelope_pb.rb +21 -0
  50. data/lib/rookout/protobuf/messages_pb.rb +189 -0
  51. data/lib/rookout/protobuf/variant_pb.rb +139 -0
  52. data/lib/rookout/rookout_singleton.rb +73 -0
  53. data/lib/rookout/services/position.rb +163 -0
  54. data/lib/rookout/services/tracer.rb +83 -0
  55. data/lib/rookout/trigger_services.rb +34 -0
  56. data/lib/rookout/user_warnings.rb +25 -0
  57. data/lib/rookout/version.rb +4 -0
  58. metadata +269 -0
@@ -0,0 +1,186 @@
1
+ module Rookout
2
+ module Processor
3
+ module Paths
4
+ module Canopy
5
+ require_relative "consts"
6
+
7
+ class Marker; end
8
+
9
+ class Operation < Marker
10
+ def read _namespace, _create
11
+ raise NotImplementedError
12
+ end
13
+
14
+ def write _namespace, _value
15
+ raise Exception.RookOperationReadOnly, self.class.to_s
16
+ end
17
+ end
18
+
19
+ class FunctionOperation < Operation
20
+ def initialize name, args
21
+ @name = name
22
+ @args = args
23
+ end
24
+
25
+ def read namespace, _create
26
+ namespace.call_method @name, @args
27
+ end
28
+ end
29
+
30
+ class AttributeOperation < Operation
31
+ def initialize name
32
+ @name = name
33
+ end
34
+
35
+ def read namespace, create
36
+ namespace.read_attribute @name
37
+ rescue Exceptions::RookAttributeNotFound
38
+ raise unless create
39
+ namespace.write_attribute name, ContainerNamespace.new
40
+ end
41
+
42
+ def write namespace, value
43
+ namespace.write_attribute @name, value
44
+ end
45
+ end
46
+
47
+ class LookupOperation < Operation
48
+ def initialize text
49
+ if (text.start_with?("'") && text.end_with?("'")) || (text.start_with?("\"") && text.end_with?("\""))
50
+ @key = text[1...-1]
51
+ else
52
+ @key = text.to_i
53
+ end
54
+ end
55
+
56
+ def read namepsace, _create
57
+ namepsace.read_key @key
58
+ end
59
+ end
60
+
61
+ class ObjectMarker < Marker
62
+ def initialize text, obj
63
+ @text = text
64
+ @obj = obj
65
+ end
66
+
67
+ attr_reader :text, :obj
68
+
69
+ def to_s
70
+ @obj.to_s
71
+ end
72
+ end
73
+
74
+ class ToolExceptionMarker < ObjectMarker
75
+ def initialize exc
76
+ super exc.to_s, exc
77
+ end
78
+ end
79
+
80
+ class NamespaceResult < ObjectMarker
81
+ def initialize namespace, text
82
+ super text, namespace
83
+ end
84
+ end
85
+
86
+ class Text < ObjectMarker
87
+ def initialize text
88
+ super text, text
89
+ end
90
+ end
91
+
92
+ class TextResult < ObjectMarker
93
+ def initialize text
94
+ super text, text
95
+ end
96
+ end
97
+
98
+ class List < ObjectMarker
99
+ def initialize list, text
100
+ super text, list
101
+ end
102
+ end
103
+
104
+ class FloatNumber < ObjectMarker
105
+ def initialize text
106
+ super text, text.to_f
107
+ end
108
+ end
109
+
110
+ class Number < ObjectMarker
111
+ def initialize text
112
+ super text, text.to_i
113
+ end
114
+ end
115
+
116
+ class Char < ObjectMarker
117
+ def initialize text
118
+ super "'@{text}'", text
119
+ end
120
+ end
121
+
122
+ class Bool < ObjectMarker
123
+ def initialize text
124
+ super text, %w[true True].include?(text)
125
+ end
126
+ end
127
+
128
+ class Nil < ObjectMarker
129
+ def initialize
130
+ super text, obj
131
+ end
132
+ end
133
+
134
+ class Opt < Marker
135
+ def initialize opt
136
+ @opt = opt
137
+ @level = nil
138
+
139
+ # Some ops have alternatives we convert back to standard
140
+ @opt = OPS_ALTERNATIVES[@opt.upcase] if OPS_ALTERNATIVES.key? @opt.upcase
141
+
142
+ ALL_LEVELS.each_with_index do |ops, index|
143
+ if ops.include? @opt
144
+ @level = index
145
+ break
146
+ end
147
+ end
148
+
149
+ raise Exceptions::RookInvalidArithmeticPath, @opt if @level.nil?
150
+ end
151
+
152
+ attr_reader :level
153
+
154
+ def execute_operation first, second
155
+ # Remove wrapping of objects as needed
156
+ first_obj = decapsulate_item first
157
+ second_obj = decapsulate_item second
158
+
159
+ result = nil
160
+ begin
161
+ result = OPS_FUNCTIONS[@opt].call first_obj, second_obj
162
+ rescue StandardError => e
163
+ raise Exceptions::RookExceptionEvaluationFailed.new "", e
164
+ end
165
+
166
+ # If we don't have a result
167
+ if result.nil?
168
+ # Verify objects are primitives
169
+ raise Exceptions::RookNonPrimitiveObjectType, a.text unless PRIMITIVES.include? first_obj.class
170
+ raise Exceptions::RookNonPrimitiveObjectType, b.text unless PRIMITIVES.include? second_obj.class
171
+ end
172
+
173
+ ObjectMarker.new result.to_s, result
174
+ end
175
+
176
+ private
177
+
178
+ def decapsulate_item item
179
+ return item.obj.obj if item.is_a? NamespaceResult
180
+ item.obj
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end
186
+ end
@@ -0,0 +1,15 @@
1
+ module Rookout
2
+ module Processor
3
+ module Paths
4
+ class Path
5
+ def read_from _namespace
6
+ raise NotImplementedError
7
+ end
8
+
9
+ def write_to _namespace, _value
10
+ raise NotImplementedError
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,34 @@
1
+ module Rookout
2
+ module Processor
3
+ require_relative "rook_error"
4
+ require_relative "../logger"
5
+ require_relative "../user_warnings"
6
+
7
+ class Processor
8
+ def initialize configuration, factory
9
+ @operations = []
10
+
11
+ configuration.each do |it|
12
+ operation = factory.create_operation it
13
+ @operations.push operation
14
+ end
15
+ end
16
+
17
+ def process namespace
18
+ @operations.each do |operation|
19
+ result = nil
20
+ begin
21
+ result = operation.execute namespace
22
+ rescue StandardError => e
23
+ message = "Error in operation"
24
+ Logger.instance.exception message, e
25
+ warning = RookError.new e, message
26
+ UserWarnings.notify_warning warning
27
+ end
28
+
29
+ return result unless result.nil?
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,23 @@
1
+ module Rookout
2
+ module Processor
3
+ require_relative "processor"
4
+ require_relative "operations/set_operation"
5
+ require_relative "paths/arithmetic_path"
6
+
7
+ class ProcessorFactory
8
+ def initialize; end
9
+
10
+ def create_operation configuration
11
+ Operations::SetOperation.new configuration, self
12
+ end
13
+
14
+ def create_path configuration
15
+ Paths::ArithmeticPath.new configuration
16
+ end
17
+
18
+ def create_processor configuration
19
+ Processor.new configuration, self
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,45 @@
1
+ module Rookout
2
+ module Processor
3
+ require_relative "../protobuf/variant_pb"
4
+
5
+ require_relative "namespace_serializer"
6
+ require_relative "namespaces/ruby_utils_namespace"
7
+
8
+ require_relative "../exceptions"
9
+
10
+ class RookError
11
+ def initialize exception, message = ""
12
+ @exception = exception
13
+ @traceback = exception.backtrace
14
+
15
+ if @exception.is_a? Exceptions::ToolException
16
+ raw_type = @exception.class.to_s
17
+ @type = raw_type[raw_type.rindex(":") + 1..raw_type.length]
18
+ @message = @exception.message
19
+ @parameters = @exception.parameters
20
+ else
21
+ @type = "Unknown"
22
+ @message = message
23
+ @parameters = nil
24
+ end
25
+ end
26
+
27
+ attr_reader :message
28
+
29
+ def dumps
30
+ parameters = NamespaceSerializer.dump Namespaces::RubyObjectNamespace.new(@parameters), false
31
+ exception = NamespaceSerializer.dump Namespaces::RubyObjectNamespace.new(@exception), false
32
+
33
+ backtrace_string = @exception.backtrace.join "\n\t"
34
+ backtrace_object = Namespaces::RubyObjectNamespace.new(backtrace_string).tailor_limits!
35
+ traceback = NamespaceSerializer.dump backtrace_object, false
36
+
37
+ Com::Rookout::Error.new message: @message,
38
+ type: @type,
39
+ parameters: parameters,
40
+ exc: exception,
41
+ traceback: traceback
42
+ end
43
+ end
44
+ end
45
+ end
File without changes
@@ -0,0 +1,68 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: agent_info.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("agent_info.proto", :syntax => :proto3) do
8
+ add_message "com.rookout.SCMInformation" do
9
+ optional :commit, :string, 1
10
+ optional :origin, :string, 2
11
+ repeated :sources, :message, 4, "com.rookout.SCMInformation.SourceInfo"
12
+ end
13
+ add_message "com.rookout.SCMInformation.SourceInfo" do
14
+ optional :remoteOriginUrl, :string, 1
15
+ optional :commit, :string, 2
16
+ end
17
+ add_message "com.rookout.NetworkInformation" do
18
+ optional :ip_addr, :string, 1
19
+ optional :network, :string, 2
20
+ optional :external_ip, :string, 3
21
+ end
22
+ add_message "com.rookout.SystemInformation" do
23
+ optional :hostname, :string, 1
24
+ optional :os, :string, 2
25
+ optional :os_version, :string, 3
26
+ optional :distro, :string, 4
27
+ optional :arch, :string, 5
28
+ end
29
+ add_message "com.rookout.VersionInformation" do
30
+ optional :version, :string, 1
31
+ optional :commit, :string, 2
32
+ end
33
+ add_message "com.rookout.PlatformInformation" do
34
+ optional :platform, :string, 1
35
+ optional :version, :string, 2
36
+ optional :variant, :string, 3
37
+ end
38
+ add_message "com.rookout.AgentInformation" do
39
+ optional :agent_id, :string, 1
40
+ optional :version, :message, 2, "com.rookout.VersionInformation"
41
+ optional :network, :message, 3, "com.rookout.NetworkInformation"
42
+ optional :system, :message, 4, "com.rookout.SystemInformation"
43
+ optional :platform, :message, 5, "com.rookout.PlatformInformation"
44
+ optional :executable, :string, 6
45
+ repeated :command_arguments, :string, 7
46
+ optional :process_id, :uint32, 8
47
+ map :labels, :string, :string, 9
48
+ optional :scm, :message, 10, "com.rookout.SCMInformation"
49
+ repeated :tags, :string, 11
50
+ end
51
+ add_message "com.rookout.AgentInformationArray" do
52
+ repeated :agents, :message, 1, "com.rookout.AgentInformation"
53
+ end
54
+ end
55
+ end
56
+
57
+ module Com
58
+ module Rookout
59
+ SCMInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.SCMInformation").msgclass
60
+ SCMInformation::SourceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.SCMInformation.SourceInfo").msgclass
61
+ NetworkInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.NetworkInformation").msgclass
62
+ SystemInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.SystemInformation").msgclass
63
+ VersionInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.VersionInformation").msgclass
64
+ PlatformInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.PlatformInformation").msgclass
65
+ AgentInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AgentInformation").msgclass
66
+ AgentInformationArray = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AgentInformationArray").msgclass
67
+ end
68
+ end
@@ -0,0 +1,29 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: controller_info.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("controller_info.proto", :syntax => :proto3) do
8
+ add_message "com.rookout.ControllerInformation" do
9
+ optional :id, :string, 1
10
+ optional :commit, :string, 2
11
+ optional :version, :string, 3
12
+ repeated :tags, :string, 4
13
+ optional :hostname, :string, 5
14
+ optional :machine_type, :string, 6
15
+ optional :network, :string, 7
16
+ optional :ip, :string, 8
17
+ optional :platform, :string, 9
18
+ optional :platform_release, :string, 10
19
+ optional :platform_version, :string, 11
20
+ optional :platform_string, :string, 12
21
+ end
22
+ end
23
+ end
24
+
25
+ module Com
26
+ module Rookout
27
+ ControllerInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ControllerInformation").msgclass
28
+ end
29
+ end
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: envelope.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf/any_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("envelope.proto", :syntax => :proto3) do
10
+ add_message "com.rookout.Envelope" do
11
+ optional :timestamp, :message, 1, "google.protobuf.Timestamp"
12
+ optional :msg, :message, 2, "google.protobuf.Any"
13
+ end
14
+ end
15
+ end
16
+
17
+ module Com
18
+ module Rookout
19
+ Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.Envelope").msgclass
20
+ end
21
+ end
@@ -0,0 +1,189 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: messages.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require_relative 'variant_pb'
7
+ require_relative 'agent_info_pb'
8
+ require_relative 'controller_info_pb'
9
+ require 'google/protobuf/any_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("messages.proto", :syntax => :proto3) do
13
+ add_message "com.rookout.NewAgentMessage" do
14
+ optional :agent_info, :message, 1, "com.rookout.AgentInformation"
15
+ end
16
+ add_message "com.rookout.StackFrame" do
17
+ optional :filename, :string, 1
18
+ optional :line, :uint32, 2
19
+ optional :function, :string, 3
20
+ end
21
+ add_message "com.rookout.StackTrace" do
22
+ repeated :frames, :message, 1, "com.rookout.StackFrame"
23
+ end
24
+ add_message "com.rookout.Exception" do
25
+ optional :type, :string, 1
26
+ optional :message, :string, 2
27
+ optional :instance, :message, 3, "com.rookout.Variant"
28
+ optional :traceback, :message, 4, "com.rookout.StackTrace"
29
+ end
30
+ add_message "com.rookout.LogMessage" do
31
+ optional :timestamp, :message, 1, "google.protobuf.Timestamp"
32
+ optional :agent_id, :string, 2
33
+ optional :level, :enum, 3, "com.rookout.LogMessage.LogLevel"
34
+ optional :filename, :string, 4
35
+ optional :line, :uint32, 5
36
+ optional :text, :string, 6
37
+ repeated :arguments, :message, 7, "com.rookout.Variant"
38
+ optional :exception, :message, 8, "com.rookout.Exception"
39
+ optional :formatted_message, :string, 9
40
+ optional :legacy_arguments, :message, 10, "com.rookout.Variant"
41
+ optional :class_name, :string, 11
42
+ optional :method_name, :string, 12
43
+ optional :controller_id, :string, 13
44
+ end
45
+ add_enum "com.rookout.LogMessage.LogLevel" do
46
+ value :TRACE, 0
47
+ value :DEBUG, 1
48
+ value :INFO, 2
49
+ value :WARNING, 3
50
+ value :ERROR, 4
51
+ value :FATAL, 5
52
+ end
53
+ add_message "com.rookout.ControllerLogMessage" do
54
+ optional :timestamp, :message, 1, "google.protobuf.Timestamp"
55
+ optional :level, :enum, 2, "com.rookout.ControllerLogMessage.LogLevel"
56
+ optional :filename, :string, 3
57
+ optional :line, :uint32, 4
58
+ optional :text, :string, 5
59
+ optional :class_name, :string, 6
60
+ optional :method_name, :string, 7
61
+ optional :controller_id, :string, 8
62
+ optional :error, :message, 9, "com.rookout.ControllerLogMessage.Error"
63
+ map :metadata, :string, :string, 10
64
+ map :metadataJSONValues, :string, :bytes, 11
65
+ end
66
+ add_message "com.rookout.ControllerLogMessage.Error" do
67
+ optional :type, :string, 1
68
+ optional :message, :string, 2
69
+ end
70
+ add_enum "com.rookout.ControllerLogMessage.LogLevel" do
71
+ value :TRACE, 0
72
+ value :DEBUG, 1
73
+ value :INFO, 2
74
+ value :WARNING, 3
75
+ value :ERROR, 4
76
+ value :FATAL, 5
77
+ end
78
+ add_message "com.rookout.RuleStatusMessage" do
79
+ optional :agent_id, :string, 1
80
+ optional :rule_id, :string, 2
81
+ optional :active, :string, 3
82
+ optional :error, :message, 4, "com.rookout.Error"
83
+ optional :controller_id, :string, 5
84
+ end
85
+ add_message "com.rookout.AugReportMessage" do
86
+ optional :agent_id, :string, 1
87
+ optional :aug_id, :string, 2
88
+ optional :arguments, :message, 3, "com.rookout.Variant"
89
+ optional :report_id, :string, 4
90
+ end
91
+ add_message "com.rookout.UserMsg" do
92
+ optional :aug_report, :message, 1, "com.rookout.AugReportMessage"
93
+ optional :report_id, :string, 2
94
+ optional :workspace_id, :string, 3
95
+ end
96
+ add_message "com.rookout.AddAugCommand" do
97
+ optional :aug_json, :string, 1
98
+ end
99
+ add_message "com.rookout.InitialAugsCommand" do
100
+ repeated :augs, :string, 1
101
+ end
102
+ add_message "com.rookout.RemoveAugCommand" do
103
+ optional :aug_id, :string, 1
104
+ end
105
+ add_message "com.rookout.InitFinishedMessage" do
106
+ end
107
+ add_message "com.rookout.ClearAugsCommand" do
108
+ end
109
+ add_message "com.rookout.PingMessage" do
110
+ optional :value, :int32, 1
111
+ end
112
+ add_message "com.rookout.ErrorMessage" do
113
+ optional :message, :string, 1
114
+ end
115
+ add_message "com.rookout.C2CInitMessage" do
116
+ optional :controllerInfo, :message, 1, "com.rookout.ControllerInformation"
117
+ repeated :connectedAgents, :string, 2
118
+ end
119
+ add_message "com.rookout.DataOnPremTokenRequest" do
120
+ end
121
+ add_message "com.rookout.DataOnPremTokenResponse" do
122
+ optional :token, :bytes, 1
123
+ end
124
+ add_message "com.rookout.AgentsList" do
125
+ repeated :agents_ids, :string, 1
126
+ end
127
+ add_message "com.rookout.AssertAgents" do
128
+ repeated :agent_ids, :string, 1
129
+ end
130
+ add_message "com.rookout.InvalidateAgentsCommand" do
131
+ repeated :agents_ids, :string, 1
132
+ end
133
+ add_message "com.rookout.ConfirmAgentsCommand" do
134
+ repeated :agents_ids, :string, 1
135
+ end
136
+ add_message "com.rookout.AgentIdHitCountPair" do
137
+ optional :agent_id, :string, 1
138
+ optional :hit_count, :uint32, 2
139
+ end
140
+ add_message "com.rookout.HitCountUpdateMessage" do
141
+ optional :aug_id, :string, 1
142
+ repeated :hitCountInformation, :message, 2, "com.rookout.AgentIdHitCountPair"
143
+ end
144
+ add_message "com.rookout.C2cRpcRequest" do
145
+ optional :request_uuid, :string, 1
146
+ optional :message, :message, 2, "google.protobuf.Any"
147
+ end
148
+ add_message "com.rookout.C2cRpcResponse" do
149
+ optional :request_uuid, :string, 1
150
+ optional :message, :message, 2, "google.protobuf.Any"
151
+ optional :error, :string, 3
152
+ end
153
+ end
154
+ end
155
+
156
+ module Com
157
+ module Rookout
158
+ NewAgentMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.NewAgentMessage").msgclass
159
+ StackFrame = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.StackFrame").msgclass
160
+ StackTrace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.StackTrace").msgclass
161
+ Exception = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.Exception").msgclass
162
+ LogMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.LogMessage").msgclass
163
+ LogMessage::LogLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.LogMessage.LogLevel").enummodule
164
+ ControllerLogMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ControllerLogMessage").msgclass
165
+ ControllerLogMessage::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ControllerLogMessage.Error").msgclass
166
+ ControllerLogMessage::LogLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ControllerLogMessage.LogLevel").enummodule
167
+ RuleStatusMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.RuleStatusMessage").msgclass
168
+ AugReportMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AugReportMessage").msgclass
169
+ UserMsg = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.UserMsg").msgclass
170
+ AddAugCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AddAugCommand").msgclass
171
+ InitialAugsCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.InitialAugsCommand").msgclass
172
+ RemoveAugCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.RemoveAugCommand").msgclass
173
+ InitFinishedMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.InitFinishedMessage").msgclass
174
+ ClearAugsCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ClearAugsCommand").msgclass
175
+ PingMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.PingMessage").msgclass
176
+ ErrorMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ErrorMessage").msgclass
177
+ C2CInitMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.C2CInitMessage").msgclass
178
+ DataOnPremTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.DataOnPremTokenRequest").msgclass
179
+ DataOnPremTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.DataOnPremTokenResponse").msgclass
180
+ AgentsList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AgentsList").msgclass
181
+ AssertAgents = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AssertAgents").msgclass
182
+ InvalidateAgentsCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.InvalidateAgentsCommand").msgclass
183
+ ConfirmAgentsCommand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.ConfirmAgentsCommand").msgclass
184
+ AgentIdHitCountPair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.AgentIdHitCountPair").msgclass
185
+ HitCountUpdateMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.HitCountUpdateMessage").msgclass
186
+ C2cRpcRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.C2cRpcRequest").msgclass
187
+ C2cRpcResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("com.rookout.C2cRpcResponse").msgclass
188
+ end
189
+ end