struct Cryload::CiThresholds

Defined in:

cryload/ci_thresholds.cr

Constant Summary

RATE_ATTAINMENT_TOLERANCE = 99.0

A run that lands within 1% of the requested rate counts as attained; scheduling jitter alone can cost a fraction of a percent.

Constructors

Instance Method Summary

Constructor Detail

def self.new(fail_on_error : Bool = false, fail_on_transport_error : Bool = false, fail_on_rate_miss : Bool = false, thresholds : Array(Threshold) = [] of Threshold) #

Instance Method Detail

def any? : Bool #

def fail_on_error=(fail_on_error : Bool) #

def fail_on_error? : Bool #

def fail_on_rate_miss=(fail_on_rate_miss : Bool) #

def fail_on_rate_miss? : Bool #

def fail_on_transport_error=(fail_on_transport_error : Bool) #

def fail_on_transport_error? : Bool #

def global : Array(Threshold) #

def scoped : Array(Threshold) #

def scoped? : Bool #

def thresholds : Array(Threshold) #