(&self, profiles: &[&str])
| 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] |
no outgoing calls