pub struct Heartbeat {
pub pc_id: String,
pub at: DateTime<Utc>,
pub agent_version: String,
pub hostname: Option<String>,
pub os_family: Option<String>,
}Expand description
Liveness ping every agent sends on a 30 s cadence (see
inventory_interval / heartbeat_interval in agent_config).
hostname and os_family are enriched baseline facts so the
SPA agents page has something to show as soon as the agent
boots — even when the full WMI-driven HwInventory hasn’t been
(or can’t be) collected. Both stay Option<String> so older
agents that don’t send them still deserialize cleanly.
Fields§
§pc_id: String§at: DateTime<Utc>§agent_version: String§hostname: Option<String>§os_family: Option<String>Coarse OS bucket from std::env::consts::OS — "windows",
"linux", "macos". Rich OS metadata still flows through
the inventory path; this is just the “agent is alive on a
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Heartbeat
impl<'de> Deserialize<'de> for Heartbeat
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 Heartbeat
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnsafeUnpin for Heartbeat
impl UnwindSafe for Heartbeat
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