Class: HanselCore::HttperfResult
- Inherits:
-
Object
- Object
- HanselCore::HttperfResult
- Defined in:
- lib/hansel/httperf_result.rb
Overview
Wrapper for parsing of the httperf run result.
Instance Attribute Summary collapse
-
#connection_rate ⇒ Object
Returns the value of attribute connection_rate.
-
#description ⇒ Object
Returns the value of attribute description.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#net_io ⇒ Object
Returns the value of attribute net_io.
-
#num_conns ⇒ Object
Returns the value of attribute num_conns.
-
#port ⇒ Object
Returns the value of attribute port.
-
#rate ⇒ Object
Returns the value of attribute rate.
-
#replies ⇒ Object
Returns the value of attribute replies.
-
#reply_rate_avg ⇒ Object
Returns the value of attribute reply_rate_avg.
-
#reply_rate_max ⇒ Object
Returns the value of attribute reply_rate_max.
-
#reply_rate_min ⇒ Object
Returns the value of attribute reply_rate_min.
-
#reply_rate_stddev ⇒ Object
Returns the value of attribute reply_rate_stddev.
-
#reply_time ⇒ Object
Returns the value of attribute reply_time.
-
#request_rate ⇒ Object
Returns the value of attribute request_rate.
-
#server ⇒ Object
Returns the value of attribute server.
-
#status ⇒ Object
Returns the value of attribute status.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(opt) ⇒ HttperfResult
constructor
A new instance of HttperfResult.
- #post_deserialize ⇒ Object
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_rate ⇒ Object
Returns the value of attribute connection_rate.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def connection_rate @connection_rate end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def description @description end |
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def errors @errors end |
#net_io ⇒ Object
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_conns ⇒ Object
Returns the value of attribute num_conns.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def num_conns @num_conns end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def port @port end |
#rate ⇒ Object
Returns the value of attribute rate.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def rate @rate end |
#replies ⇒ Object
Returns the value of attribute replies.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def replies @replies end |
#reply_rate_avg ⇒ Object
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_max ⇒ Object
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_min ⇒ Object
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_stddev ⇒ Object
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_time ⇒ Object
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_rate ⇒ Object
Returns the value of attribute request_rate.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def request_rate @request_rate end |
#server ⇒ Object
Returns the value of attribute server.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def server @server end |
#status ⇒ Object
Returns the value of attribute status.
6 7 8 |
# File 'lib/hansel/httperf_result.rb', line 6 def status @status end |
#uri ⇒ Object
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_deserialize ⇒ Object
20 21 22 |
# File 'lib/hansel/httperf_result.rb', line 20 def post_deserialize puts "** I'm awake!" end |