Class: Zipkin::ZipkinQuery::GetTraceIdsByServiceName_args

Inherits:
Object
  • Object
show all
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
END_TS =
3
LIMIT =
4
ORDER =
5
START_TS =
6
FIELDS =
{
  SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_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_fieldsObject



623
# File 'lib/zipkin_query/zipkin_query.rb', line 623

def struct_fields; FIELDS; end

#validateObject



625
626
627
628
629
# File 'lib/zipkin_query/zipkin_query.rb', line 625

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