Module: Stoplight::Domain::_TrafficRecovery
- Included in:
- TrafficRecovery::ConsecutiveSuccesses
- Defined in:
- sig/_private/stoplight/domain/ports/traffic_recovery.rbs
Overview
Strategies for determining how to recover traffic flow through the Stoplight. These strategies evaluate recovery metrics to decide which color the Stoplight should transition to during the recovery process.
Instance Method Summary collapse
-
#== ⇒ Boolean
Object methods.
-
#check_compatibility ⇒ CompatibilityResult
Checks if the strategy is compatible with the given Stoplight configuration.
-
#determine_color ⇒ decision
Determines the appropriate recovery state based on the Stoplight's current metrics and recovery progress.
- #is_a? ⇒ Boolean
Instance Method Details
#== ⇒ Boolean
Object methods
43 |
# File 'sig/_private/stoplight/domain/ports/traffic_recovery.rbs', line 43
def ==: (untyped) -> bool
|
#check_compatibility ⇒ CompatibilityResult
Checks if the strategy is compatible with the given Stoplight configuration.
36 |
# File 'sig/_private/stoplight/domain/ports/traffic_recovery.rbs', line 36
def check_compatibility: (Config) -> CompatibilityResult
|
#determine_color ⇒ decision
Determines the appropriate recovery state based on the Stoplight's current metrics and recovery progress.
40 |
# File 'sig/_private/stoplight/domain/ports/traffic_recovery.rbs', line 40
def determine_color: (Config, Domain::MetricsSnapshot) -> decision
|
#is_a? ⇒ Boolean
44 |
# File 'sig/_private/stoplight/domain/ports/traffic_recovery.rbs', line 44
def is_a?: (untyped) -> bool
|