Class: HanselCore::HttperfResult

Inherits:
Object
  • Object
show all
Defined in:
lib/hansel/httperf_result.rb

Overview

Wrapper for parsing of the httperf run result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opt) ⇒ HttperfResult

Returns a new instance of HttperfResult.



11
12
13
14
15
16
17
18
# File 'lib/hansel/httperf_result.rb', line 11

def initialize opt
  @rate         = opt[:rate]
  @server       = opt[:server]
  @port         = opt[:port]
  @uri          = opt[:uri]
  @num_conns    = opt[:num_conns]
  @description  = opt[:description]
end

Instance Attribute Details

#connection_rateObject

Returns the value of attribute connection_rate.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def connection_rate
  @connection_rate
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def description
  @description
end

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def errors
  @errors
end

#net_ioObject

Returns the value of attribute net_io.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def net_io
  @net_io
end

#num_connsObject

Returns the value of attribute num_conns.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def num_conns
  @num_conns
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def port
  @port
end

#rateObject

Returns the value of attribute rate.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def rate
  @rate
end

#repliesObject

Returns the value of attribute replies.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def replies
  @replies
end

#reply_rate_avgObject

Returns the value of attribute reply_rate_avg.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def reply_rate_avg
  @reply_rate_avg
end

#reply_rate_maxObject

Returns the value of attribute reply_rate_max.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def reply_rate_max
  @reply_rate_max
end

#reply_rate_minObject

Returns the value of attribute reply_rate_min.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def reply_rate_min
  @reply_rate_min
end

#reply_rate_stddevObject

Returns the value of attribute reply_rate_stddev.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def reply_rate_stddev
  @reply_rate_stddev
end

#reply_timeObject

Returns the value of attribute reply_time.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def reply_time
  @reply_time
end

#request_rateObject

Returns the value of attribute request_rate.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def request_rate
  @request_rate
end

#serverObject

Returns the value of attribute server.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def server
  @server
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def status
  @status
end

#uriObject

Returns the value of attribute uri.



6
7
8
# File 'lib/hansel/httperf_result.rb', line 6

def uri
  @uri
end

Instance Method Details

#post_deserializeObject



20
21
22
# File 'lib/hansel/httperf_result.rb', line 20

def post_deserialize
  puts "** I'm awake!"
end