Class: Zipkin::ZipkinQuery::GetTraceIdsBySpanName_args
- Inherits:
-
Object
- Object
- Zipkin::ZipkinQuery::GetTraceIdsBySpanName_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/zipkin_query/zipkin_query.rb,
lib/thrift/thrift/gen-rb/zipkin_query.rb
Constant Summary collapse
- SERVICE_NAME =
1
- SPAN_NAME =
2
- END_TS =
4
- LIMIT =
5
- ORDER =
6
- START_TS =
7
- FIELDS =
{ SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}, SPAN_NAME => {:type => ::Thrift::Types::STRING, :name => 'span_name'}, END_TS => {:type => ::Thrift::Types::I64, :name => 'end_ts'}, LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}, ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::Zipkin::Order}, START_TS => {:type => ::Thrift::Types::I64, :name => 'start_ts'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
578 |
# File 'lib/zipkin_query/zipkin_query.rb', line 578 def struct_fields; FIELDS; end |
#validate ⇒ Object
580 581 582 583 584 |
# File 'lib/zipkin_query/zipkin_query.rb', line 580 def validate unless @order.nil? || ::Zipkin::Order::VALID_VALUES.include?(@order) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!') end end |