Class: Blitz::Curl::Rush::Point
- Inherits:
-
Object
- Object
- Blitz::Curl::Rush::Point
- Defined in:
- lib/blitz/curl/rush.rb
Overview
Snapshot of a rush at time containing information about hits, errors timeouts, etc.
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
The average response time at this time.
-
#errors ⇒ Object
readonly
The number of errors.
-
#hits ⇒ Object
readonly
The number of successful hits.
-
#rxbytes ⇒ Object
readonly
The total number of bytes received.
-
#steps ⇒ Object
readonly
Per-step metric at this point in time.
-
#timeouts ⇒ Object
readonly
The number of timeouts.
-
#timestamp ⇒ Object
readonly
The timestamp of this snapshot.
-
#total ⇒ Object
readonly
The total number of hits that were generated.
-
#txbytes ⇒ Object
readonly
The total number of bytes sent.
-
#volume ⇒ Object
readonly
The concurrency level at this time.
Instance Method Summary collapse
-
#initialize(json) ⇒ Point
constructor
:nodoc:.
Constructor Details
#initialize(json) ⇒ Point
:nodoc:
66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/blitz/curl/rush.rb', line 66 def initialize json # :nodoc: @timestamp = json['timestamp'] @duration = json['duration'] @total = json['total'] @hits = json['executed'] @errors = json['errors'] @timeouts = json['timeouts'] @volume = json['volume'] @txbytes = json['txbytes'] @rxbytes = json['rxbytes'] @steps = json['steps'].map { |s| Step.new s } end |
Instance Attribute Details
#duration ⇒ Object (readonly)
The average response time at this time
40 41 42 |
# File 'lib/blitz/curl/rush.rb', line 40 def duration @duration end |
#errors ⇒ Object (readonly)
The number of errors
49 50 51 |
# File 'lib/blitz/curl/rush.rb', line 49 def errors @errors end |
#hits ⇒ Object (readonly)
The number of successful hits
46 47 48 |
# File 'lib/blitz/curl/rush.rb', line 46 def hits @hits end |
#rxbytes ⇒ Object (readonly)
The total number of bytes received
61 62 63 |
# File 'lib/blitz/curl/rush.rb', line 61 def rxbytes @rxbytes end |
#steps ⇒ Object (readonly)
Per-step metric at this point in time
64 65 66 |
# File 'lib/blitz/curl/rush.rb', line 64 def steps @steps end |
#timeouts ⇒ Object (readonly)
The number of timeouts
52 53 54 |
# File 'lib/blitz/curl/rush.rb', line 52 def timeouts @timeouts end |
#timestamp ⇒ Object (readonly)
The timestamp of this snapshot
37 38 39 |
# File 'lib/blitz/curl/rush.rb', line 37 def @timestamp end |
#total ⇒ Object (readonly)
The total number of hits that were generated
43 44 45 |
# File 'lib/blitz/curl/rush.rb', line 43 def total @total end |
#txbytes ⇒ Object (readonly)
The total number of bytes sent
58 59 60 |
# File 'lib/blitz/curl/rush.rb', line 58 def txbytes @txbytes end |
#volume ⇒ Object (readonly)
The concurrency level at this time
55 56 57 |
# File 'lib/blitz/curl/rush.rb', line 55 def volume @volume end |