pub struct ResolvedShadow {
pub enabled: bool,
pub ramp: f64,
pub mismatch_value: bool,
pub mismatch_diff: MismatchDiff,
pub config_error: bool,
pub logging_config_error: bool,
}Expand description
Shadow policy after resolution.
Fields§
§enabled: boolCohort selection only; admission still needs an eligible path, hook and capacity.
ramp: f64The shadow cohort percentage; zero when omitted or invalid.
mismatch_value: boolWhether a confirmed-mismatch warning carries the JSON of both values:
the effective mismatchLogging.value leaf after the shorthand
expanded, false when omitted or invalid.
mismatch_diff: MismatchDiffHow much of the difference a confirmed-mismatch warning carries: the
effective mismatchLogging.diff leaf, MismatchDiff::Off when
omitted or invalid.
config_error: boolThe shadow ramp leaf was present but invalid: shadow work is off and a
config_resolution error is emitted on the remote layer whenever a
shadow job would otherwise have been scheduled (a remote hit or a
ramped-down remote).
logging_config_error: boolA mismatch-logging leaf or the logMismatches shorthand was invalid
and acts off. One config_resolution covers all of them, recorded only
if a job is admitted.
Implementations§
Source§impl ResolvedShadow
impl ResolvedShadow
Sourcepub fn logs_mismatches(&self) -> bool
pub fn logs_mismatches(&self) -> bool
Whether a confirmed mismatch emits a warning: value is on or diff
is above MismatchDiff::Off.
Trait Implementations§
Source§impl Clone for ResolvedShadow
impl Clone for ResolvedShadow
Source§fn clone(&self) -> ResolvedShadow
fn clone(&self) -> ResolvedShadow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ResolvedShadow
Source§impl Debug for ResolvedShadow
impl Debug for ResolvedShadow
Source§impl Default for ResolvedShadow
impl Default for ResolvedShadow
Source§fn default() -> ResolvedShadow
fn default() -> ResolvedShadow
Source§impl PartialEq for ResolvedShadow
impl PartialEq for ResolvedShadow
Source§fn eq(&self, other: &ResolvedShadow) -> bool
fn eq(&self, other: &ResolvedShadow) -> bool
self and other values to be equal, and is used by ==.