Class: Blitz::Curl::Rush::Step
- Inherits:
-
Object
- Object
- Blitz::Curl::Rush::Step
- Defined in:
- lib/blitz/curl/rush.rb
Overview
Per-step (for transactional rushes) metrics of a rush at time
Instance Attribute Summary collapse
-
#asserts ⇒ Object
readonly
Cummulative assertion failures on status code for this step.
-
#connect ⇒ Object
readonly
Average TCP connect times for this step.
-
#duration ⇒ Object
readonly
The duration of this step, when successful.
-
#errors ⇒ Object
readonly
Cummulative errors for this step.
-
#timeouts ⇒ Object
readonly
Cummulative timeouts for this step.
Instance Method Summary collapse
-
#initialize(json) ⇒ Step
constructor
A new instance of Step.
Constructor Details
#initialize(json) ⇒ Step
Returns a new instance of Step.
24 25 26 27 28 29 30 |
# File 'lib/blitz/curl/rush.rb', line 24 def initialize json @duration = json['d'] @connect = json['c'] @errors = json['e'] @timeouts = json['t'] @asserts = json['a'] end |
Instance Attribute Details
#asserts ⇒ Object (readonly)
Cummulative assertion failures on status code for this step
22 23 24 |
# File 'lib/blitz/curl/rush.rb', line 22 def asserts @asserts end |
#connect ⇒ Object (readonly)
Average TCP connect times for this step
13 14 15 |
# File 'lib/blitz/curl/rush.rb', line 13 def connect @connect end |
#duration ⇒ Object (readonly)
The duration of this step, when successful
10 11 12 |
# File 'lib/blitz/curl/rush.rb', line 10 def duration @duration end |
#errors ⇒ Object (readonly)
Cummulative errors for this step
16 17 18 |
# File 'lib/blitz/curl/rush.rb', line 16 def errors @errors end |
#timeouts ⇒ Object (readonly)
Cummulative timeouts for this step
19 20 21 |
# File 'lib/blitz/curl/rush.rb', line 19 def timeouts @timeouts end |