pub struct ConfigScope {
pub target_version: Option<String>,
pub target_version_jitter: Option<String>,
pub inventory_interval: Option<String>,
pub inventory_jitter: Option<String>,
pub inventory_enabled: Option<bool>,
pub heartbeat_interval: Option<String>,
}Expand description
Per-scope partial config. Every field is Option<T>: Some =
set, None = inherit from the next-less-specific scope. Serde
default + skip_serializing_if keeps the wire JSON tight —
unset fields don’t appear in the bucket value.
Fields§
§target_version: Option<String>§target_version_jitter: Option<String>Random sleep window applied at each agent before it starts
downloading a new target_version, so a fleet-wide rollout
doesn’t slam the Object Store / broker all at once
(humantime, e.g. "30m"). "0s" (or unset) = no jitter.
inventory_interval: Option<String>§inventory_jitter: Option<String>§inventory_enabled: Option<bool>§heartbeat_interval: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ConfigScope
impl Clone for ConfigScope
Source§fn clone(&self) -> ConfigScope
fn clone(&self) -> ConfigScope
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 ConfigScope
impl Debug for ConfigScope
Source§impl Default for ConfigScope
impl Default for ConfigScope
Source§fn default() -> ConfigScope
fn default() -> ConfigScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigScopewhere
ConfigScope: Default,
impl<'de> Deserialize<'de> for ConfigScopewhere
ConfigScope: Default,
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
Source§impl PartialEq for ConfigScope
impl PartialEq for ConfigScope
Source§fn eq(&self, other: &ConfigScope) -> bool
fn eq(&self, other: &ConfigScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigScope
impl Serialize for ConfigScope
impl Eq for ConfigScope
impl StructuralPartialEq for ConfigScope
Auto Trait Implementations§
impl Freeze for ConfigScope
impl RefUnwindSafe for ConfigScope
impl Send for ConfigScope
impl Sync for ConfigScope
impl Unpin for ConfigScope
impl UnsafeUnpin for ConfigScope
impl UnwindSafe for ConfigScope
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