pub struct ChangePointMonitorConfig {
pub enabled: bool,
pub series: Vec<ChangePointSeriesConfig>,
}Expand description
Pure, off-by-default configuration for a ChangePointMonitor.
The profile is detached from runtime sampling. Building it never starts a background task or mutates scheduler state; callers must explicitly feed samples to the returned monitor.
Fields§
§enabled: boolWhether the built monitor should emit detections.
series: Vec<ChangePointSeriesConfig>Detector profile rows installed in deterministic registration order.
Implementations§
Source§impl ChangePointMonitorConfig
impl ChangePointMonitorConfig
Sourcepub fn conservative_scheduler_defaults() -> Self
pub fn conservative_scheduler_defaults() -> Self
Conservative scheduler-facing detector profile.
The profile includes the runtime series named in the adaptive-control
design notes, but remains disabled. Operators or future runtime-builder
wiring must opt in by calling Self::enable.
Sourcepub fn with_series(self, series: ChangePointSeriesConfig) -> Self
pub fn with_series(self, series: ChangePointSeriesConfig) -> Self
Append one detector profile row.
Sourcepub fn build_monitor(&self) -> ChangePointMonitor
pub fn build_monitor(&self) -> ChangePointMonitor
Build a fresh monitor from this profile.
Trait Implementations§
Source§impl Clone for ChangePointMonitorConfig
impl Clone for ChangePointMonitorConfig
Source§fn clone(&self) -> ChangePointMonitorConfig
fn clone(&self) -> ChangePointMonitorConfig
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 ChangePointMonitorConfig
impl Debug for ChangePointMonitorConfig
Source§impl Default for ChangePointMonitorConfig
impl Default for ChangePointMonitorConfig
impl Eq for ChangePointMonitorConfig
Source§impl PartialEq for ChangePointMonitorConfig
impl PartialEq for ChangePointMonitorConfig
impl StructuralPartialEq for ChangePointMonitorConfig
Auto Trait Implementations§
impl Freeze for ChangePointMonitorConfig
impl RefUnwindSafe for ChangePointMonitorConfig
impl Send for ChangePointMonitorConfig
impl Sync for ChangePointMonitorConfig
impl Unpin for ChangePointMonitorConfig
impl UnsafeUnpin for ChangePointMonitorConfig
impl UnwindSafe for ChangePointMonitorConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).