zipkin_query 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2NlYzdkMjc4Yzk5ZGIxY2YxODIzZTljMGM5NWIyZWY0MWQ5MWZhNA==
4
+ ZGU2ZjY4ODYzMzJhOGEzYWMwYzRmZDE5MDQyZjMyYzBmM2JkMzI2Ng==
5
5
  data.tar.gz: !binary |-
6
- NzVmNzVkYjgxODY1MWFlMTIxN2FmNDM0NWU3ZWQ2ZGFhNTM0YzBkMA==
6
+ OWI4YTlmOTc5Y2JmNjQ3NjE0ZjExMmYzOGIzZTk4ZTJjNGM4NGJjYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmNiNDk5Yzk1YjI4ZjE2ZjZiMzEzOWRmNzAxNzExZmRmZGYxYjA2NTMzMzRj
10
- MWZkZmY4YTI5MzM5YWFiY2EyNzc3OWE4ZmFhNTRkMWE4OTIwZWUyYThhYmM1
11
- MzUxMjdhMTQyNzc3M2NlNmVhNDJlMmM4N2ZlNTZmNjk4NzE4Y2E=
9
+ ZjExNjk1M2IyNTAxNWE1OGI1OWIxZDY0ZDIxNjk2OGZmZTUxNDlhOTE3ZTky
10
+ ZDFhOWY0YTNjMDE3MzcwMjI4MmIxYjVkODVkNDcwN2U2Mjg0ZDJlZTA3NjE1
11
+ NmU4ODRmZjg1YzE0ODE0MTdlOTU1MTUxY2UwZTM0N2Y4OTAyNTU=
12
12
  data.tar.gz: !binary |-
13
- MWY1NTg4N2IzYjcyNTg3Yzk1N2M5ODdjY2NhNDk4NzVlYzAwZWMxMDgxYzI3
14
- OThjODMzNDBhMTNiNmFlZmRmNzdmMDY3OTMxODIxMmVjMmMwN2IwY2QyYjk3
15
- OWU1ZDJlMTQxMTcxYjU1NWIxYTVlMDBkMGMyYjgzNzdjMzZmMTU=
13
+ ZjI0ZjUyZjNjYjU3M2FmNjU2OGI1MzdlZmU5ZDAyMjdjY2UyNzRiYTY2ZDYz
14
+ YzIzZWUwYzNmZTUxYTRhYjViZTAyODUyYzQ4M2U2ZDMzODE2MTA1NTZiMDA1
15
+ ZDAyZWRiMGJlMDY0ZGM3OTJlMTg1YTZiM2I4MDg1NjVkMWVmYWY=
@@ -0,0 +1,19 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'zipkin_core_types'
9
+
10
+ module Zipkin
11
+ CLIENT_SEND = %q"cs"
12
+
13
+ CLIENT_RECV = %q"cr"
14
+
15
+ SERVER_SEND = %q"ss"
16
+
17
+ SERVER_RECV = %q"sr"
18
+
19
+ end
@@ -0,0 +1,117 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Zipkin
10
+ module AnnotationType
11
+ BOOL = 0
12
+ BYTES = 1
13
+ I16 = 2
14
+ I32 = 3
15
+ I64 = 4
16
+ DOUBLE = 5
17
+ STRING = 6
18
+ VALUE_MAP = {0 => "BOOL", 1 => "BYTES", 2 => "I16", 3 => "I32", 4 => "I64", 5 => "DOUBLE", 6 => "STRING"}
19
+ VALID_VALUES = Set.new([BOOL, BYTES, I16, I32, I64, DOUBLE, STRING]).freeze
20
+ end
21
+
22
+ class Endpoint
23
+ include ::Thrift::Struct, ::Thrift::Struct_Union
24
+ IPV4 = 1
25
+ PORT = 2
26
+ SERVICE_NAME = 3
27
+
28
+ FIELDS = {
29
+ IPV4 => {:type => ::Thrift::Types::I32, :name => 'ipv4'},
30
+ PORT => {:type => ::Thrift::Types::I16, :name => 'port'},
31
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
32
+ }
33
+
34
+ def struct_fields; FIELDS; end
35
+
36
+ def validate
37
+ end
38
+
39
+ ::Thrift::Struct.generate_accessors self
40
+ end
41
+
42
+ class Annotation
43
+ include ::Thrift::Struct, ::Thrift::Struct_Union
44
+ TIMESTAMP = 1
45
+ VALUE = 2
46
+ HOST = 3
47
+ DURATION = 4
48
+
49
+ FIELDS = {
50
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
51
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
52
+ HOST => {:type => ::Thrift::Types::STRUCT, :name => 'host', :class => ::Zipkin::Endpoint, :optional => true},
53
+ DURATION => {:type => ::Thrift::Types::I32, :name => 'duration', :optional => true}
54
+ }
55
+
56
+ def struct_fields; FIELDS; end
57
+
58
+ def validate
59
+ end
60
+
61
+ ::Thrift::Struct.generate_accessors self
62
+ end
63
+
64
+ class BinaryAnnotation
65
+ include ::Thrift::Struct, ::Thrift::Struct_Union
66
+ KEY = 1
67
+ VALUE = 2
68
+ ANNOTATION_TYPE = 3
69
+ HOST = 4
70
+
71
+ FIELDS = {
72
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
73
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
74
+ ANNOTATION_TYPE => {:type => ::Thrift::Types::I32, :name => 'annotation_type', :enum_class => ::Zipkin::AnnotationType},
75
+ HOST => {:type => ::Thrift::Types::STRUCT, :name => 'host', :class => ::Zipkin::Endpoint, :optional => true}
76
+ }
77
+
78
+ def struct_fields; FIELDS; end
79
+
80
+ def validate
81
+ unless @annotation_type.nil? || ::Zipkin::AnnotationType::VALID_VALUES.include?(@annotation_type)
82
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field annotation_type!')
83
+ end
84
+ end
85
+
86
+ ::Thrift::Struct.generate_accessors self
87
+ end
88
+
89
+ class Span
90
+ include ::Thrift::Struct, ::Thrift::Struct_Union
91
+ TRACE_ID = 1
92
+ NAME = 3
93
+ ID = 4
94
+ PARENT_ID = 5
95
+ ANNOTATIONS = 6
96
+ BINARY_ANNOTATIONS = 8
97
+ DEBUG = 9
98
+
99
+ FIELDS = {
100
+ TRACE_ID => {:type => ::Thrift::Types::I64, :name => 'trace_id'},
101
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
102
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'},
103
+ PARENT_ID => {:type => ::Thrift::Types::I64, :name => 'parent_id', :optional => true},
104
+ ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::Annotation}},
105
+ BINARY_ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'binary_annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::BinaryAnnotation}},
106
+ DEBUG => {:type => ::Thrift::Types::BOOL, :name => 'debug', :default => false, :optional => true}
107
+ }
108
+
109
+ def struct_fields; FIELDS; end
110
+
111
+ def validate
112
+ end
113
+
114
+ ::Thrift::Struct.generate_accessors self
115
+ end
116
+
117
+ end
@@ -0,0 +1,11 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'zipkin_dependencies_types'
9
+
10
+ module Zipkin
11
+ end
@@ -0,0 +1,74 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Zipkin
10
+ class Moments
11
+ include ::Thrift::Struct, ::Thrift::Struct_Union
12
+ M0 = 1
13
+ M1 = 2
14
+ M2 = 3
15
+ M3 = 4
16
+ M4 = 5
17
+
18
+ FIELDS = {
19
+ M0 => {:type => ::Thrift::Types::I64, :name => 'm0'},
20
+ M1 => {:type => ::Thrift::Types::DOUBLE, :name => 'm1'},
21
+ M2 => {:type => ::Thrift::Types::DOUBLE, :name => 'm2'},
22
+ M3 => {:type => ::Thrift::Types::DOUBLE, :name => 'm3'},
23
+ M4 => {:type => ::Thrift::Types::DOUBLE, :name => 'm4'}
24
+ }
25
+
26
+ def struct_fields; FIELDS; end
27
+
28
+ def validate
29
+ end
30
+
31
+ ::Thrift::Struct.generate_accessors self
32
+ end
33
+
34
+ class DependencyLink
35
+ include ::Thrift::Struct, ::Thrift::Struct_Union
36
+ PARENT = 1
37
+ CHILD = 2
38
+ DURATION_MOMENTS = 3
39
+
40
+ FIELDS = {
41
+ PARENT => {:type => ::Thrift::Types::STRING, :name => 'parent'},
42
+ CHILD => {:type => ::Thrift::Types::STRING, :name => 'child'},
43
+ DURATION_MOMENTS => {:type => ::Thrift::Types::STRUCT, :name => 'duration_moments', :class => ::Zipkin::Moments}
44
+ }
45
+
46
+ def struct_fields; FIELDS; end
47
+
48
+ def validate
49
+ end
50
+
51
+ ::Thrift::Struct.generate_accessors self
52
+ end
53
+
54
+ class Dependencies
55
+ include ::Thrift::Struct, ::Thrift::Struct_Union
56
+ START_TIME = 1
57
+ END_TIME = 2
58
+ LINKS = 3
59
+
60
+ FIELDS = {
61
+ START_TIME => {:type => ::Thrift::Types::I64, :name => 'start_time'},
62
+ END_TIME => {:type => ::Thrift::Types::I64, :name => 'end_time'},
63
+ LINKS => {:type => ::Thrift::Types::LIST, :name => 'links', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::DependencyLink}}
64
+ }
65
+
66
+ def struct_fields; FIELDS; end
67
+
68
+ def validate
69
+ end
70
+
71
+ ::Thrift::Struct.generate_accessors self
72
+ end
73
+
74
+ end
@@ -0,0 +1,1225 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'zipkin_query_types'
9
+
10
+ module Zipkin
11
+ module ZipkinQuery
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def getTraceIds(request)
16
+ send_getTraceIds(request)
17
+ return recv_getTraceIds()
18
+ end
19
+
20
+ def send_getTraceIds(request)
21
+ send_message('getTraceIds', GetTraceIds_args, :request => request)
22
+ end
23
+
24
+ def recv_getTraceIds()
25
+ result = receive_message(GetTraceIds_result)
26
+ return result.success unless result.success.nil?
27
+ raise result.qe unless result.qe.nil?
28
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceIds failed: unknown result')
29
+ end
30
+
31
+ def getTraceIdsBySpanName(service_name, span_name, end_ts, limit, order, start_ts)
32
+ send_getTraceIdsBySpanName(service_name, span_name, end_ts, limit, order, start_ts)
33
+ return recv_getTraceIdsBySpanName()
34
+ end
35
+
36
+ def send_getTraceIdsBySpanName(service_name, span_name, end_ts, limit, order, start_ts)
37
+ send_message('getTraceIdsBySpanName', GetTraceIdsBySpanName_args, :service_name => service_name, :span_name => span_name, :end_ts => end_ts, :limit => limit, :order => order, :start_ts => start_ts)
38
+ end
39
+
40
+ def recv_getTraceIdsBySpanName()
41
+ result = receive_message(GetTraceIdsBySpanName_result)
42
+ return result.success unless result.success.nil?
43
+ raise result.qe unless result.qe.nil?
44
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceIdsBySpanName failed: unknown result')
45
+ end
46
+
47
+ def getTraceIdsByServiceName(service_name, end_ts, limit, order, start_ts)
48
+ send_getTraceIdsByServiceName(service_name, end_ts, limit, order, start_ts)
49
+ return recv_getTraceIdsByServiceName()
50
+ end
51
+
52
+ def send_getTraceIdsByServiceName(service_name, end_ts, limit, order, start_ts)
53
+ send_message('getTraceIdsByServiceName', GetTraceIdsByServiceName_args, :service_name => service_name, :end_ts => end_ts, :limit => limit, :order => order, :start_ts => start_ts)
54
+ end
55
+
56
+ def recv_getTraceIdsByServiceName()
57
+ result = receive_message(GetTraceIdsByServiceName_result)
58
+ return result.success unless result.success.nil?
59
+ raise result.qe unless result.qe.nil?
60
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceIdsByServiceName failed: unknown result')
61
+ end
62
+
63
+ def getTraceIdsByAnnotation(service_name, annotation, value, end_ts, limit, order, start_ts)
64
+ send_getTraceIdsByAnnotation(service_name, annotation, value, end_ts, limit, order, start_ts)
65
+ return recv_getTraceIdsByAnnotation()
66
+ end
67
+
68
+ def send_getTraceIdsByAnnotation(service_name, annotation, value, end_ts, limit, order, start_ts)
69
+ send_message('getTraceIdsByAnnotation', GetTraceIdsByAnnotation_args, :service_name => service_name, :annotation => annotation, :value => value, :end_ts => end_ts, :limit => limit, :order => order, :start_ts => start_ts)
70
+ end
71
+
72
+ def recv_getTraceIdsByAnnotation()
73
+ result = receive_message(GetTraceIdsByAnnotation_result)
74
+ return result.success unless result.success.nil?
75
+ raise result.qe unless result.qe.nil?
76
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceIdsByAnnotation failed: unknown result')
77
+ end
78
+
79
+ def tracesExist(trace_ids)
80
+ send_tracesExist(trace_ids)
81
+ return recv_tracesExist()
82
+ end
83
+
84
+ def send_tracesExist(trace_ids)
85
+ send_message('tracesExist', TracesExist_args, :trace_ids => trace_ids)
86
+ end
87
+
88
+ def recv_tracesExist()
89
+ result = receive_message(TracesExist_result)
90
+ return result.success unless result.success.nil?
91
+ raise result.qe unless result.qe.nil?
92
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'tracesExist failed: unknown result')
93
+ end
94
+
95
+ def getTracesByIds(trace_ids, adjust)
96
+ send_getTracesByIds(trace_ids, adjust)
97
+ return recv_getTracesByIds()
98
+ end
99
+
100
+ def send_getTracesByIds(trace_ids, adjust)
101
+ send_message('getTracesByIds', GetTracesByIds_args, :trace_ids => trace_ids, :adjust => adjust)
102
+ end
103
+
104
+ def recv_getTracesByIds()
105
+ result = receive_message(GetTracesByIds_result)
106
+ return result.success unless result.success.nil?
107
+ raise result.qe unless result.qe.nil?
108
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTracesByIds failed: unknown result')
109
+ end
110
+
111
+ def getTraceTimelinesByIds(trace_ids, adjust)
112
+ send_getTraceTimelinesByIds(trace_ids, adjust)
113
+ return recv_getTraceTimelinesByIds()
114
+ end
115
+
116
+ def send_getTraceTimelinesByIds(trace_ids, adjust)
117
+ send_message('getTraceTimelinesByIds', GetTraceTimelinesByIds_args, :trace_ids => trace_ids, :adjust => adjust)
118
+ end
119
+
120
+ def recv_getTraceTimelinesByIds()
121
+ result = receive_message(GetTraceTimelinesByIds_result)
122
+ return result.success unless result.success.nil?
123
+ raise result.qe unless result.qe.nil?
124
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceTimelinesByIds failed: unknown result')
125
+ end
126
+
127
+ def getTraceSummariesByIds(trace_ids, adjust)
128
+ send_getTraceSummariesByIds(trace_ids, adjust)
129
+ return recv_getTraceSummariesByIds()
130
+ end
131
+
132
+ def send_getTraceSummariesByIds(trace_ids, adjust)
133
+ send_message('getTraceSummariesByIds', GetTraceSummariesByIds_args, :trace_ids => trace_ids, :adjust => adjust)
134
+ end
135
+
136
+ def recv_getTraceSummariesByIds()
137
+ result = receive_message(GetTraceSummariesByIds_result)
138
+ return result.success unless result.success.nil?
139
+ raise result.qe unless result.qe.nil?
140
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceSummariesByIds failed: unknown result')
141
+ end
142
+
143
+ def getTraceCombosByIds(trace_ids, adjust)
144
+ send_getTraceCombosByIds(trace_ids, adjust)
145
+ return recv_getTraceCombosByIds()
146
+ end
147
+
148
+ def send_getTraceCombosByIds(trace_ids, adjust)
149
+ send_message('getTraceCombosByIds', GetTraceCombosByIds_args, :trace_ids => trace_ids, :adjust => adjust)
150
+ end
151
+
152
+ def recv_getTraceCombosByIds()
153
+ result = receive_message(GetTraceCombosByIds_result)
154
+ return result.success unless result.success.nil?
155
+ raise result.qe unless result.qe.nil?
156
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceCombosByIds failed: unknown result')
157
+ end
158
+
159
+ def getServiceNames()
160
+ send_getServiceNames()
161
+ return recv_getServiceNames()
162
+ end
163
+
164
+ def send_getServiceNames()
165
+ send_message('getServiceNames', GetServiceNames_args)
166
+ end
167
+
168
+ def recv_getServiceNames()
169
+ result = receive_message(GetServiceNames_result)
170
+ return result.success unless result.success.nil?
171
+ raise result.qe unless result.qe.nil?
172
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getServiceNames failed: unknown result')
173
+ end
174
+
175
+ def getSpanNames(service_name)
176
+ send_getSpanNames(service_name)
177
+ return recv_getSpanNames()
178
+ end
179
+
180
+ def send_getSpanNames(service_name)
181
+ send_message('getSpanNames', GetSpanNames_args, :service_name => service_name)
182
+ end
183
+
184
+ def recv_getSpanNames()
185
+ result = receive_message(GetSpanNames_result)
186
+ return result.success unless result.success.nil?
187
+ raise result.qe unless result.qe.nil?
188
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSpanNames failed: unknown result')
189
+ end
190
+
191
+ def setTraceTimeToLive(trace_id, ttl_seconds)
192
+ send_setTraceTimeToLive(trace_id, ttl_seconds)
193
+ recv_setTraceTimeToLive()
194
+ end
195
+
196
+ def send_setTraceTimeToLive(trace_id, ttl_seconds)
197
+ send_message('setTraceTimeToLive', SetTraceTimeToLive_args, :trace_id => trace_id, :ttl_seconds => ttl_seconds)
198
+ end
199
+
200
+ def recv_setTraceTimeToLive()
201
+ result = receive_message(SetTraceTimeToLive_result)
202
+ raise result.qe unless result.qe.nil?
203
+ return
204
+ end
205
+
206
+ def getTraceTimeToLive(trace_id)
207
+ send_getTraceTimeToLive(trace_id)
208
+ return recv_getTraceTimeToLive()
209
+ end
210
+
211
+ def send_getTraceTimeToLive(trace_id)
212
+ send_message('getTraceTimeToLive', GetTraceTimeToLive_args, :trace_id => trace_id)
213
+ end
214
+
215
+ def recv_getTraceTimeToLive()
216
+ result = receive_message(GetTraceTimeToLive_result)
217
+ return result.success unless result.success.nil?
218
+ raise result.qe unless result.qe.nil?
219
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceTimeToLive failed: unknown result')
220
+ end
221
+
222
+ def getDataTimeToLive()
223
+ send_getDataTimeToLive()
224
+ return recv_getDataTimeToLive()
225
+ end
226
+
227
+ def send_getDataTimeToLive()
228
+ send_message('getDataTimeToLive', GetDataTimeToLive_args)
229
+ end
230
+
231
+ def recv_getDataTimeToLive()
232
+ result = receive_message(GetDataTimeToLive_result)
233
+ return result.success unless result.success.nil?
234
+ raise result.qe unless result.qe.nil?
235
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDataTimeToLive failed: unknown result')
236
+ end
237
+
238
+ def getDependencies(start_time, end_time)
239
+ send_getDependencies(start_time, end_time)
240
+ return recv_getDependencies()
241
+ end
242
+
243
+ def send_getDependencies(start_time, end_time)
244
+ send_message('getDependencies', GetDependencies_args, :start_time => start_time, :end_time => end_time)
245
+ end
246
+
247
+ def recv_getDependencies()
248
+ result = receive_message(GetDependencies_result)
249
+ return result.success unless result.success.nil?
250
+ raise result.qe unless result.qe.nil?
251
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDependencies failed: unknown result')
252
+ end
253
+
254
+ def getTopAnnotations(service_name)
255
+ send_getTopAnnotations(service_name)
256
+ return recv_getTopAnnotations()
257
+ end
258
+
259
+ def send_getTopAnnotations(service_name)
260
+ send_message('getTopAnnotations', GetTopAnnotations_args, :service_name => service_name)
261
+ end
262
+
263
+ def recv_getTopAnnotations()
264
+ result = receive_message(GetTopAnnotations_result)
265
+ return result.success unless result.success.nil?
266
+ raise result.qe unless result.qe.nil?
267
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTopAnnotations failed: unknown result')
268
+ end
269
+
270
+ def getTopKeyValueAnnotations(service_name)
271
+ send_getTopKeyValueAnnotations(service_name)
272
+ return recv_getTopKeyValueAnnotations()
273
+ end
274
+
275
+ def send_getTopKeyValueAnnotations(service_name)
276
+ send_message('getTopKeyValueAnnotations', GetTopKeyValueAnnotations_args, :service_name => service_name)
277
+ end
278
+
279
+ def recv_getTopKeyValueAnnotations()
280
+ result = receive_message(GetTopKeyValueAnnotations_result)
281
+ return result.success unless result.success.nil?
282
+ raise result.qe unless result.qe.nil?
283
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTopKeyValueAnnotations failed: unknown result')
284
+ end
285
+
286
+ def getSpanDurations(time_stamp, service_name, rpc_name)
287
+ send_getSpanDurations(time_stamp, service_name, rpc_name)
288
+ return recv_getSpanDurations()
289
+ end
290
+
291
+ def send_getSpanDurations(time_stamp, service_name, rpc_name)
292
+ send_message('getSpanDurations', GetSpanDurations_args, :time_stamp => time_stamp, :service_name => service_name, :rpc_name => rpc_name)
293
+ end
294
+
295
+ def recv_getSpanDurations()
296
+ result = receive_message(GetSpanDurations_result)
297
+ return result.success unless result.success.nil?
298
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSpanDurations failed: unknown result')
299
+ end
300
+
301
+ def getServiceNamesToTraceIds(time_stamp, service_name, rpc_name)
302
+ send_getServiceNamesToTraceIds(time_stamp, service_name, rpc_name)
303
+ return recv_getServiceNamesToTraceIds()
304
+ end
305
+
306
+ def send_getServiceNamesToTraceIds(time_stamp, service_name, rpc_name)
307
+ send_message('getServiceNamesToTraceIds', GetServiceNamesToTraceIds_args, :time_stamp => time_stamp, :service_name => service_name, :rpc_name => rpc_name)
308
+ end
309
+
310
+ def recv_getServiceNamesToTraceIds()
311
+ result = receive_message(GetServiceNamesToTraceIds_result)
312
+ return result.success unless result.success.nil?
313
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getServiceNamesToTraceIds failed: unknown result')
314
+ end
315
+
316
+ end
317
+
318
+ class Processor
319
+ include ::Thrift::Processor
320
+
321
+ def process_getTraceIds(seqid, iprot, oprot)
322
+ args = read_args(iprot, GetTraceIds_args)
323
+ result = GetTraceIds_result.new()
324
+ begin
325
+ result.success = @handler.getTraceIds(args.request)
326
+ rescue ::Zipkin::QueryException => qe
327
+ result.qe = qe
328
+ end
329
+ write_result(result, oprot, 'getTraceIds', seqid)
330
+ end
331
+
332
+ def process_getTraceIdsBySpanName(seqid, iprot, oprot)
333
+ args = read_args(iprot, GetTraceIdsBySpanName_args)
334
+ result = GetTraceIdsBySpanName_result.new()
335
+ begin
336
+ result.success = @handler.getTraceIdsBySpanName(args.service_name, args.span_name, args.end_ts, args.limit, args.order, args.start_ts)
337
+ rescue ::Zipkin::QueryException => qe
338
+ result.qe = qe
339
+ end
340
+ write_result(result, oprot, 'getTraceIdsBySpanName', seqid)
341
+ end
342
+
343
+ def process_getTraceIdsByServiceName(seqid, iprot, oprot)
344
+ args = read_args(iprot, GetTraceIdsByServiceName_args)
345
+ result = GetTraceIdsByServiceName_result.new()
346
+ begin
347
+ result.success = @handler.getTraceIdsByServiceName(args.service_name, args.end_ts, args.limit, args.order, args.start_ts)
348
+ rescue ::Zipkin::QueryException => qe
349
+ result.qe = qe
350
+ end
351
+ write_result(result, oprot, 'getTraceIdsByServiceName', seqid)
352
+ end
353
+
354
+ def process_getTraceIdsByAnnotation(seqid, iprot, oprot)
355
+ args = read_args(iprot, GetTraceIdsByAnnotation_args)
356
+ result = GetTraceIdsByAnnotation_result.new()
357
+ begin
358
+ result.success = @handler.getTraceIdsByAnnotation(args.service_name, args.annotation, args.value, args.end_ts, args.limit, args.order, args.start_ts)
359
+ rescue ::Zipkin::QueryException => qe
360
+ result.qe = qe
361
+ end
362
+ write_result(result, oprot, 'getTraceIdsByAnnotation', seqid)
363
+ end
364
+
365
+ def process_tracesExist(seqid, iprot, oprot)
366
+ args = read_args(iprot, TracesExist_args)
367
+ result = TracesExist_result.new()
368
+ begin
369
+ result.success = @handler.tracesExist(args.trace_ids)
370
+ rescue ::Zipkin::QueryException => qe
371
+ result.qe = qe
372
+ end
373
+ write_result(result, oprot, 'tracesExist', seqid)
374
+ end
375
+
376
+ def process_getTracesByIds(seqid, iprot, oprot)
377
+ args = read_args(iprot, GetTracesByIds_args)
378
+ result = GetTracesByIds_result.new()
379
+ begin
380
+ result.success = @handler.getTracesByIds(args.trace_ids, args.adjust)
381
+ rescue ::Zipkin::QueryException => qe
382
+ result.qe = qe
383
+ end
384
+ write_result(result, oprot, 'getTracesByIds', seqid)
385
+ end
386
+
387
+ def process_getTraceTimelinesByIds(seqid, iprot, oprot)
388
+ args = read_args(iprot, GetTraceTimelinesByIds_args)
389
+ result = GetTraceTimelinesByIds_result.new()
390
+ begin
391
+ result.success = @handler.getTraceTimelinesByIds(args.trace_ids, args.adjust)
392
+ rescue ::Zipkin::QueryException => qe
393
+ result.qe = qe
394
+ end
395
+ write_result(result, oprot, 'getTraceTimelinesByIds', seqid)
396
+ end
397
+
398
+ def process_getTraceSummariesByIds(seqid, iprot, oprot)
399
+ args = read_args(iprot, GetTraceSummariesByIds_args)
400
+ result = GetTraceSummariesByIds_result.new()
401
+ begin
402
+ result.success = @handler.getTraceSummariesByIds(args.trace_ids, args.adjust)
403
+ rescue ::Zipkin::QueryException => qe
404
+ result.qe = qe
405
+ end
406
+ write_result(result, oprot, 'getTraceSummariesByIds', seqid)
407
+ end
408
+
409
+ def process_getTraceCombosByIds(seqid, iprot, oprot)
410
+ args = read_args(iprot, GetTraceCombosByIds_args)
411
+ result = GetTraceCombosByIds_result.new()
412
+ begin
413
+ result.success = @handler.getTraceCombosByIds(args.trace_ids, args.adjust)
414
+ rescue ::Zipkin::QueryException => qe
415
+ result.qe = qe
416
+ end
417
+ write_result(result, oprot, 'getTraceCombosByIds', seqid)
418
+ end
419
+
420
+ def process_getServiceNames(seqid, iprot, oprot)
421
+ args = read_args(iprot, GetServiceNames_args)
422
+ result = GetServiceNames_result.new()
423
+ begin
424
+ result.success = @handler.getServiceNames()
425
+ rescue ::Zipkin::QueryException => qe
426
+ result.qe = qe
427
+ end
428
+ write_result(result, oprot, 'getServiceNames', seqid)
429
+ end
430
+
431
+ def process_getSpanNames(seqid, iprot, oprot)
432
+ args = read_args(iprot, GetSpanNames_args)
433
+ result = GetSpanNames_result.new()
434
+ begin
435
+ result.success = @handler.getSpanNames(args.service_name)
436
+ rescue ::Zipkin::QueryException => qe
437
+ result.qe = qe
438
+ end
439
+ write_result(result, oprot, 'getSpanNames', seqid)
440
+ end
441
+
442
+ def process_setTraceTimeToLive(seqid, iprot, oprot)
443
+ args = read_args(iprot, SetTraceTimeToLive_args)
444
+ result = SetTraceTimeToLive_result.new()
445
+ begin
446
+ @handler.setTraceTimeToLive(args.trace_id, args.ttl_seconds)
447
+ rescue ::Zipkin::QueryException => qe
448
+ result.qe = qe
449
+ end
450
+ write_result(result, oprot, 'setTraceTimeToLive', seqid)
451
+ end
452
+
453
+ def process_getTraceTimeToLive(seqid, iprot, oprot)
454
+ args = read_args(iprot, GetTraceTimeToLive_args)
455
+ result = GetTraceTimeToLive_result.new()
456
+ begin
457
+ result.success = @handler.getTraceTimeToLive(args.trace_id)
458
+ rescue ::Zipkin::QueryException => qe
459
+ result.qe = qe
460
+ end
461
+ write_result(result, oprot, 'getTraceTimeToLive', seqid)
462
+ end
463
+
464
+ def process_getDataTimeToLive(seqid, iprot, oprot)
465
+ args = read_args(iprot, GetDataTimeToLive_args)
466
+ result = GetDataTimeToLive_result.new()
467
+ begin
468
+ result.success = @handler.getDataTimeToLive()
469
+ rescue ::Zipkin::QueryException => qe
470
+ result.qe = qe
471
+ end
472
+ write_result(result, oprot, 'getDataTimeToLive', seqid)
473
+ end
474
+
475
+ def process_getDependencies(seqid, iprot, oprot)
476
+ args = read_args(iprot, GetDependencies_args)
477
+ result = GetDependencies_result.new()
478
+ begin
479
+ result.success = @handler.getDependencies(args.start_time, args.end_time)
480
+ rescue ::Zipkin::QueryException => qe
481
+ result.qe = qe
482
+ end
483
+ write_result(result, oprot, 'getDependencies', seqid)
484
+ end
485
+
486
+ def process_getTopAnnotations(seqid, iprot, oprot)
487
+ args = read_args(iprot, GetTopAnnotations_args)
488
+ result = GetTopAnnotations_result.new()
489
+ begin
490
+ result.success = @handler.getTopAnnotations(args.service_name)
491
+ rescue ::Zipkin::QueryException => qe
492
+ result.qe = qe
493
+ end
494
+ write_result(result, oprot, 'getTopAnnotations', seqid)
495
+ end
496
+
497
+ def process_getTopKeyValueAnnotations(seqid, iprot, oprot)
498
+ args = read_args(iprot, GetTopKeyValueAnnotations_args)
499
+ result = GetTopKeyValueAnnotations_result.new()
500
+ begin
501
+ result.success = @handler.getTopKeyValueAnnotations(args.service_name)
502
+ rescue ::Zipkin::QueryException => qe
503
+ result.qe = qe
504
+ end
505
+ write_result(result, oprot, 'getTopKeyValueAnnotations', seqid)
506
+ end
507
+
508
+ def process_getSpanDurations(seqid, iprot, oprot)
509
+ args = read_args(iprot, GetSpanDurations_args)
510
+ result = GetSpanDurations_result.new()
511
+ result.success = @handler.getSpanDurations(args.time_stamp, args.service_name, args.rpc_name)
512
+ write_result(result, oprot, 'getSpanDurations', seqid)
513
+ end
514
+
515
+ def process_getServiceNamesToTraceIds(seqid, iprot, oprot)
516
+ args = read_args(iprot, GetServiceNamesToTraceIds_args)
517
+ result = GetServiceNamesToTraceIds_result.new()
518
+ result.success = @handler.getServiceNamesToTraceIds(args.time_stamp, args.service_name, args.rpc_name)
519
+ write_result(result, oprot, 'getServiceNamesToTraceIds', seqid)
520
+ end
521
+
522
+ end
523
+
524
+ # HELPER FUNCTIONS AND STRUCTURES
525
+
526
+ class GetTraceIds_args
527
+ include ::Thrift::Struct, ::Thrift::Struct_Union
528
+ REQUEST = 1
529
+
530
+ FIELDS = {
531
+ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::Zipkin::QueryRequest}
532
+ }
533
+
534
+ def struct_fields; FIELDS; end
535
+
536
+ def validate
537
+ end
538
+
539
+ ::Thrift::Struct.generate_accessors self
540
+ end
541
+
542
+ class GetTraceIds_result
543
+ include ::Thrift::Struct, ::Thrift::Struct_Union
544
+ SUCCESS = 0
545
+ QE = 1
546
+
547
+ FIELDS = {
548
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Zipkin::QueryResponse},
549
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
550
+ }
551
+
552
+ def struct_fields; FIELDS; end
553
+
554
+ def validate
555
+ end
556
+
557
+ ::Thrift::Struct.generate_accessors self
558
+ end
559
+
560
+ class GetTraceIdsBySpanName_args
561
+ include ::Thrift::Struct, ::Thrift::Struct_Union
562
+ SERVICE_NAME = 1
563
+ SPAN_NAME = 2
564
+ END_TS = 4
565
+ LIMIT = 5
566
+ ORDER = 6
567
+ START_TS = 7
568
+
569
+ FIELDS = {
570
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
571
+ SPAN_NAME => {:type => ::Thrift::Types::STRING, :name => 'span_name'},
572
+ END_TS => {:type => ::Thrift::Types::I64, :name => 'end_ts'},
573
+ LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
574
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::Zipkin::Order},
575
+ START_TS => {:type => ::Thrift::Types::I64, :name => 'start_ts'}
576
+ }
577
+
578
+ def struct_fields; FIELDS; end
579
+
580
+ def validate
581
+ unless @order.nil? || ::Zipkin::Order::VALID_VALUES.include?(@order)
582
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
583
+ end
584
+ end
585
+
586
+ ::Thrift::Struct.generate_accessors self
587
+ end
588
+
589
+ class GetTraceIdsBySpanName_result
590
+ include ::Thrift::Struct, ::Thrift::Struct_Union
591
+ SUCCESS = 0
592
+ QE = 1
593
+
594
+ FIELDS = {
595
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
596
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
597
+ }
598
+
599
+ def struct_fields; FIELDS; end
600
+
601
+ def validate
602
+ end
603
+
604
+ ::Thrift::Struct.generate_accessors self
605
+ end
606
+
607
+ class GetTraceIdsByServiceName_args
608
+ include ::Thrift::Struct, ::Thrift::Struct_Union
609
+ SERVICE_NAME = 1
610
+ END_TS = 3
611
+ LIMIT = 4
612
+ ORDER = 5
613
+ START_TS = 6
614
+
615
+ FIELDS = {
616
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
617
+ END_TS => {:type => ::Thrift::Types::I64, :name => 'end_ts'},
618
+ LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
619
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::Zipkin::Order},
620
+ START_TS => {:type => ::Thrift::Types::I64, :name => 'start_ts'}
621
+ }
622
+
623
+ def struct_fields; FIELDS; end
624
+
625
+ def validate
626
+ unless @order.nil? || ::Zipkin::Order::VALID_VALUES.include?(@order)
627
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
628
+ end
629
+ end
630
+
631
+ ::Thrift::Struct.generate_accessors self
632
+ end
633
+
634
+ class GetTraceIdsByServiceName_result
635
+ include ::Thrift::Struct, ::Thrift::Struct_Union
636
+ SUCCESS = 0
637
+ QE = 1
638
+
639
+ FIELDS = {
640
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
641
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
642
+ }
643
+
644
+ def struct_fields; FIELDS; end
645
+
646
+ def validate
647
+ end
648
+
649
+ ::Thrift::Struct.generate_accessors self
650
+ end
651
+
652
+ class GetTraceIdsByAnnotation_args
653
+ include ::Thrift::Struct, ::Thrift::Struct_Union
654
+ SERVICE_NAME = 1
655
+ ANNOTATION = 2
656
+ VALUE = 3
657
+ END_TS = 5
658
+ LIMIT = 6
659
+ ORDER = 7
660
+ START_TS = 8
661
+
662
+ FIELDS = {
663
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
664
+ ANNOTATION => {:type => ::Thrift::Types::STRING, :name => 'annotation'},
665
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
666
+ END_TS => {:type => ::Thrift::Types::I64, :name => 'end_ts'},
667
+ LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
668
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::Zipkin::Order},
669
+ START_TS => {:type => ::Thrift::Types::I64, :name => 'start_ts'}
670
+ }
671
+
672
+ def struct_fields; FIELDS; end
673
+
674
+ def validate
675
+ unless @order.nil? || ::Zipkin::Order::VALID_VALUES.include?(@order)
676
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
677
+ end
678
+ end
679
+
680
+ ::Thrift::Struct.generate_accessors self
681
+ end
682
+
683
+ class GetTraceIdsByAnnotation_result
684
+ include ::Thrift::Struct, ::Thrift::Struct_Union
685
+ SUCCESS = 0
686
+ QE = 1
687
+
688
+ FIELDS = {
689
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
690
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
691
+ }
692
+
693
+ def struct_fields; FIELDS; end
694
+
695
+ def validate
696
+ end
697
+
698
+ ::Thrift::Struct.generate_accessors self
699
+ end
700
+
701
+ class TracesExist_args
702
+ include ::Thrift::Struct, ::Thrift::Struct_Union
703
+ TRACE_IDS = 1
704
+
705
+ FIELDS = {
706
+ TRACE_IDS => {:type => ::Thrift::Types::LIST, :name => 'trace_ids', :element => {:type => ::Thrift::Types::I64}}
707
+ }
708
+
709
+ def struct_fields; FIELDS; end
710
+
711
+ def validate
712
+ end
713
+
714
+ ::Thrift::Struct.generate_accessors self
715
+ end
716
+
717
+ class TracesExist_result
718
+ include ::Thrift::Struct, ::Thrift::Struct_Union
719
+ SUCCESS = 0
720
+ QE = 1
721
+
722
+ FIELDS = {
723
+ SUCCESS => {:type => ::Thrift::Types::SET, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
724
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
725
+ }
726
+
727
+ def struct_fields; FIELDS; end
728
+
729
+ def validate
730
+ end
731
+
732
+ ::Thrift::Struct.generate_accessors self
733
+ end
734
+
735
+ class GetTracesByIds_args
736
+ include ::Thrift::Struct, ::Thrift::Struct_Union
737
+ TRACE_IDS = 1
738
+ ADJUST = 2
739
+
740
+ FIELDS = {
741
+ TRACE_IDS => {:type => ::Thrift::Types::LIST, :name => 'trace_ids', :element => {:type => ::Thrift::Types::I64}},
742
+ ADJUST => {:type => ::Thrift::Types::LIST, :name => 'adjust', :element => {:type => ::Thrift::Types::I32, :enum_class => ::Zipkin::Adjust}}
743
+ }
744
+
745
+ def struct_fields; FIELDS; end
746
+
747
+ def validate
748
+ end
749
+
750
+ ::Thrift::Struct.generate_accessors self
751
+ end
752
+
753
+ class GetTracesByIds_result
754
+ include ::Thrift::Struct, ::Thrift::Struct_Union
755
+ SUCCESS = 0
756
+ QE = 1
757
+
758
+ FIELDS = {
759
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::Trace}},
760
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
761
+ }
762
+
763
+ def struct_fields; FIELDS; end
764
+
765
+ def validate
766
+ end
767
+
768
+ ::Thrift::Struct.generate_accessors self
769
+ end
770
+
771
+ class GetTraceTimelinesByIds_args
772
+ include ::Thrift::Struct, ::Thrift::Struct_Union
773
+ TRACE_IDS = 1
774
+ ADJUST = 2
775
+
776
+ FIELDS = {
777
+ TRACE_IDS => {:type => ::Thrift::Types::LIST, :name => 'trace_ids', :element => {:type => ::Thrift::Types::I64}},
778
+ ADJUST => {:type => ::Thrift::Types::LIST, :name => 'adjust', :element => {:type => ::Thrift::Types::I32, :enum_class => ::Zipkin::Adjust}}
779
+ }
780
+
781
+ def struct_fields; FIELDS; end
782
+
783
+ def validate
784
+ end
785
+
786
+ ::Thrift::Struct.generate_accessors self
787
+ end
788
+
789
+ class GetTraceTimelinesByIds_result
790
+ include ::Thrift::Struct, ::Thrift::Struct_Union
791
+ SUCCESS = 0
792
+ QE = 1
793
+
794
+ FIELDS = {
795
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::TraceTimeline}},
796
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
797
+ }
798
+
799
+ def struct_fields; FIELDS; end
800
+
801
+ def validate
802
+ end
803
+
804
+ ::Thrift::Struct.generate_accessors self
805
+ end
806
+
807
+ class GetTraceSummariesByIds_args
808
+ include ::Thrift::Struct, ::Thrift::Struct_Union
809
+ TRACE_IDS = 1
810
+ ADJUST = 2
811
+
812
+ FIELDS = {
813
+ TRACE_IDS => {:type => ::Thrift::Types::LIST, :name => 'trace_ids', :element => {:type => ::Thrift::Types::I64}},
814
+ ADJUST => {:type => ::Thrift::Types::LIST, :name => 'adjust', :element => {:type => ::Thrift::Types::I32, :enum_class => ::Zipkin::Adjust}}
815
+ }
816
+
817
+ def struct_fields; FIELDS; end
818
+
819
+ def validate
820
+ end
821
+
822
+ ::Thrift::Struct.generate_accessors self
823
+ end
824
+
825
+ class GetTraceSummariesByIds_result
826
+ include ::Thrift::Struct, ::Thrift::Struct_Union
827
+ SUCCESS = 0
828
+ QE = 1
829
+
830
+ FIELDS = {
831
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::TraceSummary}},
832
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
833
+ }
834
+
835
+ def struct_fields; FIELDS; end
836
+
837
+ def validate
838
+ end
839
+
840
+ ::Thrift::Struct.generate_accessors self
841
+ end
842
+
843
+ class GetTraceCombosByIds_args
844
+ include ::Thrift::Struct, ::Thrift::Struct_Union
845
+ TRACE_IDS = 1
846
+ ADJUST = 2
847
+
848
+ FIELDS = {
849
+ TRACE_IDS => {:type => ::Thrift::Types::LIST, :name => 'trace_ids', :element => {:type => ::Thrift::Types::I64}},
850
+ ADJUST => {:type => ::Thrift::Types::LIST, :name => 'adjust', :element => {:type => ::Thrift::Types::I32, :enum_class => ::Zipkin::Adjust}}
851
+ }
852
+
853
+ def struct_fields; FIELDS; end
854
+
855
+ def validate
856
+ end
857
+
858
+ ::Thrift::Struct.generate_accessors self
859
+ end
860
+
861
+ class GetTraceCombosByIds_result
862
+ include ::Thrift::Struct, ::Thrift::Struct_Union
863
+ SUCCESS = 0
864
+ QE = 1
865
+
866
+ FIELDS = {
867
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::TraceCombo}},
868
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
869
+ }
870
+
871
+ def struct_fields; FIELDS; end
872
+
873
+ def validate
874
+ end
875
+
876
+ ::Thrift::Struct.generate_accessors self
877
+ end
878
+
879
+ class GetServiceNames_args
880
+ include ::Thrift::Struct, ::Thrift::Struct_Union
881
+
882
+ FIELDS = {
883
+
884
+ }
885
+
886
+ def struct_fields; FIELDS; end
887
+
888
+ def validate
889
+ end
890
+
891
+ ::Thrift::Struct.generate_accessors self
892
+ end
893
+
894
+ class GetServiceNames_result
895
+ include ::Thrift::Struct, ::Thrift::Struct_Union
896
+ SUCCESS = 0
897
+ QE = 1
898
+
899
+ FIELDS = {
900
+ SUCCESS => {:type => ::Thrift::Types::SET, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
901
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
902
+ }
903
+
904
+ def struct_fields; FIELDS; end
905
+
906
+ def validate
907
+ end
908
+
909
+ ::Thrift::Struct.generate_accessors self
910
+ end
911
+
912
+ class GetSpanNames_args
913
+ include ::Thrift::Struct, ::Thrift::Struct_Union
914
+ SERVICE_NAME = 1
915
+
916
+ FIELDS = {
917
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
918
+ }
919
+
920
+ def struct_fields; FIELDS; end
921
+
922
+ def validate
923
+ end
924
+
925
+ ::Thrift::Struct.generate_accessors self
926
+ end
927
+
928
+ class GetSpanNames_result
929
+ include ::Thrift::Struct, ::Thrift::Struct_Union
930
+ SUCCESS = 0
931
+ QE = 1
932
+
933
+ FIELDS = {
934
+ SUCCESS => {:type => ::Thrift::Types::SET, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
935
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
936
+ }
937
+
938
+ def struct_fields; FIELDS; end
939
+
940
+ def validate
941
+ end
942
+
943
+ ::Thrift::Struct.generate_accessors self
944
+ end
945
+
946
+ class SetTraceTimeToLive_args
947
+ include ::Thrift::Struct, ::Thrift::Struct_Union
948
+ TRACE_ID = 1
949
+ TTL_SECONDS = 2
950
+
951
+ FIELDS = {
952
+ TRACE_ID => {:type => ::Thrift::Types::I64, :name => 'trace_id'},
953
+ TTL_SECONDS => {:type => ::Thrift::Types::I32, :name => 'ttl_seconds'}
954
+ }
955
+
956
+ def struct_fields; FIELDS; end
957
+
958
+ def validate
959
+ end
960
+
961
+ ::Thrift::Struct.generate_accessors self
962
+ end
963
+
964
+ class SetTraceTimeToLive_result
965
+ include ::Thrift::Struct, ::Thrift::Struct_Union
966
+ QE = 1
967
+
968
+ FIELDS = {
969
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
970
+ }
971
+
972
+ def struct_fields; FIELDS; end
973
+
974
+ def validate
975
+ end
976
+
977
+ ::Thrift::Struct.generate_accessors self
978
+ end
979
+
980
+ class GetTraceTimeToLive_args
981
+ include ::Thrift::Struct, ::Thrift::Struct_Union
982
+ TRACE_ID = 1
983
+
984
+ FIELDS = {
985
+ TRACE_ID => {:type => ::Thrift::Types::I64, :name => 'trace_id'}
986
+ }
987
+
988
+ def struct_fields; FIELDS; end
989
+
990
+ def validate
991
+ end
992
+
993
+ ::Thrift::Struct.generate_accessors self
994
+ end
995
+
996
+ class GetTraceTimeToLive_result
997
+ include ::Thrift::Struct, ::Thrift::Struct_Union
998
+ SUCCESS = 0
999
+ QE = 1
1000
+
1001
+ FIELDS = {
1002
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
1003
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
1004
+ }
1005
+
1006
+ def struct_fields; FIELDS; end
1007
+
1008
+ def validate
1009
+ end
1010
+
1011
+ ::Thrift::Struct.generate_accessors self
1012
+ end
1013
+
1014
+ class GetDataTimeToLive_args
1015
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1016
+
1017
+ FIELDS = {
1018
+
1019
+ }
1020
+
1021
+ def struct_fields; FIELDS; end
1022
+
1023
+ def validate
1024
+ end
1025
+
1026
+ ::Thrift::Struct.generate_accessors self
1027
+ end
1028
+
1029
+ class GetDataTimeToLive_result
1030
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1031
+ SUCCESS = 0
1032
+ QE = 1
1033
+
1034
+ FIELDS = {
1035
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
1036
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
1037
+ }
1038
+
1039
+ def struct_fields; FIELDS; end
1040
+
1041
+ def validate
1042
+ end
1043
+
1044
+ ::Thrift::Struct.generate_accessors self
1045
+ end
1046
+
1047
+ class GetDependencies_args
1048
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1049
+ START_TIME = 1
1050
+ END_TIME = 2
1051
+
1052
+ FIELDS = {
1053
+ START_TIME => {:type => ::Thrift::Types::I64, :name => 'start_time'},
1054
+ END_TIME => {:type => ::Thrift::Types::I64, :name => 'end_time'}
1055
+ }
1056
+
1057
+ def struct_fields; FIELDS; end
1058
+
1059
+ def validate
1060
+ end
1061
+
1062
+ ::Thrift::Struct.generate_accessors self
1063
+ end
1064
+
1065
+ class GetDependencies_result
1066
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1067
+ SUCCESS = 0
1068
+ QE = 1
1069
+
1070
+ FIELDS = {
1071
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Zipkin::Dependencies},
1072
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
1073
+ }
1074
+
1075
+ def struct_fields; FIELDS; end
1076
+
1077
+ def validate
1078
+ end
1079
+
1080
+ ::Thrift::Struct.generate_accessors self
1081
+ end
1082
+
1083
+ class GetTopAnnotations_args
1084
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1085
+ SERVICE_NAME = 1
1086
+
1087
+ FIELDS = {
1088
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
1089
+ }
1090
+
1091
+ def struct_fields; FIELDS; end
1092
+
1093
+ def validate
1094
+ end
1095
+
1096
+ ::Thrift::Struct.generate_accessors self
1097
+ end
1098
+
1099
+ class GetTopAnnotations_result
1100
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1101
+ SUCCESS = 0
1102
+ QE = 1
1103
+
1104
+ FIELDS = {
1105
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
1106
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
1107
+ }
1108
+
1109
+ def struct_fields; FIELDS; end
1110
+
1111
+ def validate
1112
+ end
1113
+
1114
+ ::Thrift::Struct.generate_accessors self
1115
+ end
1116
+
1117
+ class GetTopKeyValueAnnotations_args
1118
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1119
+ SERVICE_NAME = 1
1120
+
1121
+ FIELDS = {
1122
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
1123
+ }
1124
+
1125
+ def struct_fields; FIELDS; end
1126
+
1127
+ def validate
1128
+ end
1129
+
1130
+ ::Thrift::Struct.generate_accessors self
1131
+ end
1132
+
1133
+ class GetTopKeyValueAnnotations_result
1134
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1135
+ SUCCESS = 0
1136
+ QE = 1
1137
+
1138
+ FIELDS = {
1139
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
1140
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => ::Zipkin::QueryException}
1141
+ }
1142
+
1143
+ def struct_fields; FIELDS; end
1144
+
1145
+ def validate
1146
+ end
1147
+
1148
+ ::Thrift::Struct.generate_accessors self
1149
+ end
1150
+
1151
+ class GetSpanDurations_args
1152
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1153
+ TIME_STAMP = 1
1154
+ SERVICE_NAME = 2
1155
+ RPC_NAME = 3
1156
+
1157
+ FIELDS = {
1158
+ TIME_STAMP => {:type => ::Thrift::Types::I64, :name => 'time_stamp'},
1159
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
1160
+ RPC_NAME => {:type => ::Thrift::Types::STRING, :name => 'rpc_name'}
1161
+ }
1162
+
1163
+ def struct_fields; FIELDS; end
1164
+
1165
+ def validate
1166
+ end
1167
+
1168
+ ::Thrift::Struct.generate_accessors self
1169
+ end
1170
+
1171
+ class GetSpanDurations_result
1172
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1173
+ SUCCESS = 0
1174
+
1175
+ FIELDS = {
1176
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::I64}}}
1177
+ }
1178
+
1179
+ def struct_fields; FIELDS; end
1180
+
1181
+ def validate
1182
+ end
1183
+
1184
+ ::Thrift::Struct.generate_accessors self
1185
+ end
1186
+
1187
+ class GetServiceNamesToTraceIds_args
1188
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1189
+ TIME_STAMP = 1
1190
+ SERVICE_NAME = 2
1191
+ RPC_NAME = 3
1192
+
1193
+ FIELDS = {
1194
+ TIME_STAMP => {:type => ::Thrift::Types::I64, :name => 'time_stamp'},
1195
+ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
1196
+ RPC_NAME => {:type => ::Thrift::Types::STRING, :name => 'rpc_name'}
1197
+ }
1198
+
1199
+ def struct_fields; FIELDS; end
1200
+
1201
+ def validate
1202
+ end
1203
+
1204
+ ::Thrift::Struct.generate_accessors self
1205
+ end
1206
+
1207
+ class GetServiceNamesToTraceIds_result
1208
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1209
+ SUCCESS = 0
1210
+
1211
+ FIELDS = {
1212
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::I64}}}
1213
+ }
1214
+
1215
+ def struct_fields; FIELDS; end
1216
+
1217
+ def validate
1218
+ end
1219
+
1220
+ ::Thrift::Struct.generate_accessors self
1221
+ end
1222
+
1223
+ end
1224
+
1225
+ end