pub struct Snapshot {
pub protocol_version: String,
pub origin_id: String,
pub provider_name: String,
pub timestamp: i64,
pub fingerprint: Option<String>,
pub parent_origin_id: Option<String>,
pub labels: BTreeMap<String, String>,
pub tree: Vec<Node>,
}Expand description
One observation of some state at a point in time (SPEC §4.1).
Fields§
§protocol_version: StringMAJOR.MINOR.PATCH; only MAJOR is contract-significant.
origin_id: StringWhat was observed (a host, an account, a cluster…).
provider_name: StringThe source/collector that produced it.
timestamp: i64Observation time, seconds since the Unix epoch (UTC).
fingerprint: Option<String>Optional identity/integrity token for the source.
parent_origin_id: Option<String>Optional lineage/grouping pointer to another origin.
labels: BTreeMap<String, String>Snapshot-level annotation. Never hashed.
tree: Vec<Node>The observed nodes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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