Class: Blitz::Curl::Rush::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/blitz/curl/rush.rb

Overview

Per-step (for transactional rushes) metrics of a rush at time

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#assertsObject (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

#connectObject (readonly)

Average TCP connect times for this step



13
14
15
# File 'lib/blitz/curl/rush.rb', line 13

def connect
  @connect
end

#durationObject (readonly)

The duration of this step, when successful



10
11
12
# File 'lib/blitz/curl/rush.rb', line 10

def duration
  @duration
end

#errorsObject (readonly)

Cummulative errors for this step



16
17
18
# File 'lib/blitz/curl/rush.rb', line 16

def errors
  @errors
end

#timeoutsObject (readonly)

Cummulative timeouts for this step



19
20
21
# File 'lib/blitz/curl/rush.rb', line 19

def timeouts
  @timeouts
end