Class: Vicary::LatencyBaseline::Comparison
- Inherits:
-
Struct
- Object
- Struct
- Vicary::LatencyBaseline::Comparison
- Defined in:
- lib/vicary/latency_baseline.rb
Overview
The gate's answer, and — when it declines — why.
Instance Attribute Summary collapse
-
#against ⇒ Object
Returns the value of attribute against.
-
#comparable ⇒ Object
Returns the value of attribute comparable.
-
#current_ms ⇒ Object
Returns the value of attribute current_ms.
-
#measured_ms ⇒ Object
Returns the value of attribute measured_ms.
-
#previous_ms ⇒ Object
Returns the value of attribute previous_ms.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#regression_pct ⇒ Object
Returns the value of attribute regression_pct.
-
#tolerance_pct ⇒ Object
Returns the value of attribute tolerance_pct.
Instance Method Summary collapse
Instance Attribute Details
#against ⇒ Object
Returns the value of attribute against
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def against @against end |
#comparable ⇒ Object
Returns the value of attribute comparable
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def comparable @comparable end |
#current_ms ⇒ Object
Returns the value of attribute current_ms
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def current_ms @current_ms end |
#measured_ms ⇒ Object
Returns the value of attribute measured_ms
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def measured_ms @measured_ms end |
#previous_ms ⇒ Object
Returns the value of attribute previous_ms
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def previous_ms @previous_ms end |
#reason ⇒ Object
Returns the value of attribute reason
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def reason @reason end |
#regression_pct ⇒ Object
Returns the value of attribute regression_pct
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def regression_pct @regression_pct end |
#tolerance_pct ⇒ Object
Returns the value of attribute tolerance_pct
77 78 79 |
# File 'lib/vicary/latency_baseline.rb', line 77 def tolerance_pct @tolerance_pct end |
Instance Method Details
#holds? ⇒ Boolean
82 83 84 85 86 |
# File 'lib/vicary/latency_baseline.rb', line 82 def holds? return false unless comparable && !regression_pct.nil? regression_pct <= tolerance_pct end |