MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / metadata

Method metadata

crates/openshell-ocsf/src/builders/mod.rs:201–209  ·  view source on GitHub ↗
(&self, profiles: &[&str])

Source from the content-addressed store, hash-verified

199 /// Build the OCSF `Metadata` object for any event.
200 #[must_use]
201 pub fn metadata(&self, profiles: &[&str]) -> Metadata {
202 Metadata {
203 version: OCSF_VERSION.to_string(),
204 product: Product::openshell_sandbox(&self.product_version),
205 profiles: profiles.iter().map(|s| (*s).to_string()).collect(),
206 uid: Some(self.sandbox_id.clone()),
207 log_source: None,
208 }
209 }
210
211 /// Build the OCSF `Container` object.
212 #[must_use]

Callers 15

on_eventMethod · 0.80
on_eventMethod · 0.80
is_unix_socketFunction · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80
buildMethod · 0.80

Calls

no outgoing calls

Tested by 2