pub struct ProbeDecl {Show 15 fields
pub kind: String,
pub mode: String,
pub interval_seconds: u64,
pub run_once: bool,
pub url: Option<String>,
pub expect_status: u16,
pub host: Option<String>,
pub port: Option<u16>,
pub connect_timeout_secs: u64,
pub command: Vec<String>,
pub timeout_secs: u64,
pub framework: Option<String>,
pub evidence_path: String,
pub control_overrides: HashMap<String, ControlOverrideDecl>,
pub controls: HashMap<String, ControlOverrideDecl>,
}Expand description
On-disk probe declaration. Loaded from
/etc/nixfleet/agent/health-checks.json (rendered from
lib/mk-fleet.nix:effectiveHealthChecks by _agent.nix).
Fields§
§kind: String§mode: String§interval_seconds: u64§run_once: bool§url: Option<String>§expect_status: u16§host: Option<String>§port: Option<u16>§connect_timeout_secs: u64§command: Vec<String>§timeout_secs: u64§framework: Option<String>§evidence_path: String§control_overrides: HashMap<String, ControlOverrideDecl>Per-control mode overrides on top of mode, scoped to the
framework declared in framework. Resolved per-control at
runtime: override > probe-level mode.
controls: HashMap<String, ControlOverrideDecl>Explicit per-control selection (custom-framework declaration).
Mutually exclusive with framework; eval-time validation in
lib/mk-fleet.nix rejects probes that set both.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProbeDecl
impl<'de> Deserialize<'de> for ProbeDecl
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 ProbeDecl
impl RefUnwindSafe for ProbeDecl
impl Send for ProbeDecl
impl Sync for ProbeDecl
impl Unpin for ProbeDecl
impl UnwindSafe for ProbeDecl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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