Class: Zipkin::ZipkinQuery::GetTraceIdsByAnnotation_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/zipkin_query/zipkin_query.rb

Constant Summary collapse

SERVICE_NAME =
1
ANNOTATION =
2
VALUE =
3
END_TS =
5
LIMIT =
6
ORDER =
7
FIELDS =
{
  SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'},
  ANNOTATION => {:type => ::Thrift::Types::STRING, :name => 'annotation'},
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
  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}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



670
671
672
673
674
# File 'lib/zipkin_query/zipkin_query.rb', line 670

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