pub struct RolloutGate {
pub metric: String,
pub condition: String,
pub window: String,
}Expand description
A single SLO gate evaluated after a step’s gate window elapses.
All gates must pass before the rollout advances to the next step.
A gate failure triggers the step’s on_failure action.
Fields§
§metric: StringMetric name. v1 yubaba supports http_5xx_rate and p95_latency_ms;
arbitrary PromQL expressions are also accepted.
condition: StringComparison condition, e.g. "< 0.01" or "< 200".
Operators: <, <=, >, >=.
window: StringPrometheus query window, e.g. "5m". Must exceed the scrape interval
to avoid false positives from observation lag.
Trait Implementations§
Source§impl Clone for RolloutGate
impl Clone for RolloutGate
Source§fn clone(&self) -> RolloutGate
fn clone(&self) -> RolloutGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RolloutGate
impl Debug for RolloutGate
Source§impl<'de> Deserialize<'de> for RolloutGate
impl<'de> Deserialize<'de> for RolloutGate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RolloutGate
impl RefUnwindSafe for RolloutGate
impl Send for RolloutGate
impl Sync for RolloutGate
impl Unpin for RolloutGate
impl UnsafeUnpin for RolloutGate
impl UnwindSafe for RolloutGate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more