zipkin-query 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zipkin-query/version.rb +1 -1
- data/vendor/gen-rb/zipkin-query/zipkin_query.rb +122 -0
- metadata +4 -4
data/lib/zipkin-query/version.rb
CHANGED
@@ -203,6 +203,38 @@ require 'zipkin_query_types'
|
|
203
203
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDataTimeToLive failed: unknown result')
|
204
204
|
end
|
205
205
|
|
206
|
+
def getTopAnnotations(service_name)
|
207
|
+
send_getTopAnnotations(service_name)
|
208
|
+
return recv_getTopAnnotations()
|
209
|
+
end
|
210
|
+
|
211
|
+
def send_getTopAnnotations(service_name)
|
212
|
+
send_message('getTopAnnotations', GetTopAnnotations_args, :service_name => service_name)
|
213
|
+
end
|
214
|
+
|
215
|
+
def recv_getTopAnnotations()
|
216
|
+
result = receive_message(GetTopAnnotations_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, 'getTopAnnotations failed: unknown result')
|
220
|
+
end
|
221
|
+
|
222
|
+
def getTopKeyValueAnnotations(service_name)
|
223
|
+
send_getTopKeyValueAnnotations(service_name)
|
224
|
+
return recv_getTopKeyValueAnnotations()
|
225
|
+
end
|
226
|
+
|
227
|
+
def send_getTopKeyValueAnnotations(service_name)
|
228
|
+
send_message('getTopKeyValueAnnotations', GetTopKeyValueAnnotations_args, :service_name => service_name)
|
229
|
+
end
|
230
|
+
|
231
|
+
def recv_getTopKeyValueAnnotations()
|
232
|
+
result = receive_message(GetTopKeyValueAnnotations_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, 'getTopKeyValueAnnotations failed: unknown result')
|
236
|
+
end
|
237
|
+
|
206
238
|
end
|
207
239
|
|
208
240
|
class Processor
|
@@ -340,6 +372,28 @@ require 'zipkin_query_types'
|
|
340
372
|
write_result(result, oprot, 'getDataTimeToLive', seqid)
|
341
373
|
end
|
342
374
|
|
375
|
+
def process_getTopAnnotations(seqid, iprot, oprot)
|
376
|
+
args = read_args(iprot, GetTopAnnotations_args)
|
377
|
+
result = GetTopAnnotations_result.new()
|
378
|
+
begin
|
379
|
+
result.success = @handler.getTopAnnotations(args.service_name)
|
380
|
+
rescue Zipkin::QueryException => qe
|
381
|
+
result.qe = qe
|
382
|
+
end
|
383
|
+
write_result(result, oprot, 'getTopAnnotations', seqid)
|
384
|
+
end
|
385
|
+
|
386
|
+
def process_getTopKeyValueAnnotations(seqid, iprot, oprot)
|
387
|
+
args = read_args(iprot, GetTopKeyValueAnnotations_args)
|
388
|
+
result = GetTopKeyValueAnnotations_result.new()
|
389
|
+
begin
|
390
|
+
result.success = @handler.getTopKeyValueAnnotations(args.service_name)
|
391
|
+
rescue Zipkin::QueryException => qe
|
392
|
+
result.qe = qe
|
393
|
+
end
|
394
|
+
write_result(result, oprot, 'getTopKeyValueAnnotations', seqid)
|
395
|
+
end
|
396
|
+
|
343
397
|
end
|
344
398
|
|
345
399
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -791,6 +845,74 @@ require 'zipkin_query_types'
|
|
791
845
|
::Thrift::Struct.generate_accessors self
|
792
846
|
end
|
793
847
|
|
848
|
+
class GetTopAnnotations_args
|
849
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
850
|
+
SERVICE_NAME = 1
|
851
|
+
|
852
|
+
FIELDS = {
|
853
|
+
SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
|
854
|
+
}
|
855
|
+
|
856
|
+
def struct_fields; FIELDS; end
|
857
|
+
|
858
|
+
def validate
|
859
|
+
end
|
860
|
+
|
861
|
+
::Thrift::Struct.generate_accessors self
|
862
|
+
end
|
863
|
+
|
864
|
+
class GetTopAnnotations_result
|
865
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
866
|
+
SUCCESS = 0
|
867
|
+
QE = 1
|
868
|
+
|
869
|
+
FIELDS = {
|
870
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
871
|
+
QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => Zipkin::QueryException}
|
872
|
+
}
|
873
|
+
|
874
|
+
def struct_fields; FIELDS; end
|
875
|
+
|
876
|
+
def validate
|
877
|
+
end
|
878
|
+
|
879
|
+
::Thrift::Struct.generate_accessors self
|
880
|
+
end
|
881
|
+
|
882
|
+
class GetTopKeyValueAnnotations_args
|
883
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
884
|
+
SERVICE_NAME = 1
|
885
|
+
|
886
|
+
FIELDS = {
|
887
|
+
SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
|
888
|
+
}
|
889
|
+
|
890
|
+
def struct_fields; FIELDS; end
|
891
|
+
|
892
|
+
def validate
|
893
|
+
end
|
894
|
+
|
895
|
+
::Thrift::Struct.generate_accessors self
|
896
|
+
end
|
897
|
+
|
898
|
+
class GetTopKeyValueAnnotations_result
|
899
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
900
|
+
SUCCESS = 0
|
901
|
+
QE = 1
|
902
|
+
|
903
|
+
FIELDS = {
|
904
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
|
905
|
+
QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => Zipkin::QueryException}
|
906
|
+
}
|
907
|
+
|
908
|
+
def struct_fields; FIELDS; end
|
909
|
+
|
910
|
+
def validate
|
911
|
+
end
|
912
|
+
|
913
|
+
::Thrift::Struct.generate_accessors self
|
914
|
+
end
|
915
|
+
|
794
916
|
end
|
795
917
|
|
796
918
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zipkin-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Franklin Hu
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-06-
|
18
|
+
date: 2012-06-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: thrift
|