Class: Blitz::Curl::Rush::Point

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#durationObject (readonly)

The average response time at this time



40
41
42
# File 'lib/blitz/curl/rush.rb', line 40

def duration
  @duration
end

#errorsObject (readonly)

The number of errors



49
50
51
# File 'lib/blitz/curl/rush.rb', line 49

def errors
  @errors
end

#hitsObject (readonly)

The number of successful hits



46
47
48
# File 'lib/blitz/curl/rush.rb', line 46

def hits
  @hits
end

#rxbytesObject (readonly)

The total number of bytes received



61
62
63
# File 'lib/blitz/curl/rush.rb', line 61

def rxbytes
  @rxbytes
end

#stepsObject (readonly)

Per-step metric at this point in time



64
65
66
# File 'lib/blitz/curl/rush.rb', line 64

def steps
  @steps
end

#timeoutsObject (readonly)

The number of timeouts



52
53
54
# File 'lib/blitz/curl/rush.rb', line 52

def timeouts
  @timeouts
end

#timestampObject (readonly)

The timestamp of this snapshot



37
38
39
# File 'lib/blitz/curl/rush.rb', line 37

def timestamp
  @timestamp
end

#totalObject (readonly)

The total number of hits that were generated



43
44
45
# File 'lib/blitz/curl/rush.rb', line 43

def total
  @total
end

#txbytesObject (readonly)

The total number of bytes sent



58
59
60
# File 'lib/blitz/curl/rush.rb', line 58

def txbytes
  @txbytes
end

#volumeObject (readonly)

The concurrency level at this time



55
56
57
# File 'lib/blitz/curl/rush.rb', line 55

def volume
  @volume
end