Cryload::Stats::Sample - cryload 6.0.0

# struct Cryload::Stats::Sample

- Cryload::Stats::Sample
- Struct
- Value
- Object

##
Overview

One completed response, moved from a worker into its batch. A struct so the hot path stays allocation-free.

##
Defined in:

cryload/stats.cr

##
Constructors

- .new(url_index : Int32, status_code : Int32, total_ms : Float64, corrected_ms : Float64, send_delay_ms : Float64, ttfb_ms : Float64, response_bytes : Int64, dns_ms : Float64 | Nil = nil, connect_ms : Float64 | Nil = nil, tls_ms : Float64 | Nil = nil)

##
Instance Method Summary

- #connect_ms : Float64 | Nil
- #corrected_ms : Float64
- #dns_ms : Float64 | Nil
- #response_bytes : Int64
- #send_delay_ms : Float64
- #status_code : Int32
- #tls_ms : Float64 | Nil
- #total_ms : Float64
- #ttfb_ms : Float64
- #url_index : Int32

##
Constructor Detail

def self.new(url_index : Int32, status_code : Int32, total_ms : Float64, corrected_ms : Float64, send_delay_ms : Float64, ttfb_ms : Float64, response_bytes : Int64, dns_ms : Float64 | Nil = nil, connect_ms : Float64 | Nil = nil, tls_ms : Float64 | Nil = nil) #

##
Instance Method Detail

def connect_ms : Float64 | Nil #
def corrected_ms : Float64 #
def dns_ms : Float64 | Nil #
def response_bytes : Int64 #
def send_delay_ms : Float64 #
def status_code : Int32 #
def tls_ms : Float64 | Nil #
def total_ms : Float64 #
def ttfb_ms : Float64 #
def url_index : Int32 #