#[non_exhaustive]pub struct HostMeta {Show 16 fields
pub agent_checks: Option<Vec<Vec<Value>>>,
pub agent_version: Option<String>,
pub cpu_cores: Option<i64>,
pub fbsd_v: Option<Vec<Value>>,
pub gohai: Option<String>,
pub install_method: Option<HostMetaInstallMethod>,
pub mac_v: Option<Vec<Value>>,
pub machine: Option<String>,
pub nix_v: Option<Vec<Value>>,
pub platform: Option<String>,
pub processor: Option<String>,
pub python_v: Option<String>,
pub socket_fqdn: Option<String>,
pub socket_hostname: Option<String>,
pub win_v: Option<Vec<Value>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Metadata associated with your host.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.agent_checks: Option<Vec<Vec<Value>>>
A list of Agent checks running on the host.
agent_version: Option<String>
The Datadog Agent version.
cpu_cores: Option<i64>
The number of cores.
fbsd_v: Option<Vec<Value>>
An array of Mac versions.
gohai: Option<String>
JSON string containing system information.
install_method: Option<HostMetaInstallMethod>
Agent install method.
mac_v: Option<Vec<Value>>
An array of Mac versions.
machine: Option<String>
The machine architecture.
nix_v: Option<Vec<Value>>
Array of Unix versions.
platform: Option<String>
The OS platform.
processor: Option<String>
The processor.
python_v: Option<String>
The Python version.
socket_fqdn: Option<String>
The socket fqdn.
socket_hostname: Option<String>
The socket hostname.
win_v: Option<Vec<Value>>
An array of Windows versions.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl HostMeta
impl HostMeta
pub fn new() -> HostMeta
pub fn agent_checks(self, value: Vec<Vec<Value>>) -> Self
pub fn agent_version(self, value: String) -> Self
pub fn cpu_cores(self, value: i64) -> Self
pub fn fbsd_v(self, value: Vec<Value>) -> Self
pub fn gohai(self, value: String) -> Self
pub fn install_method(self, value: HostMetaInstallMethod) -> Self
pub fn mac_v(self, value: Vec<Value>) -> Self
pub fn machine(self, value: String) -> Self
pub fn nix_v(self, value: Vec<Value>) -> Self
pub fn platform(self, value: String) -> Self
pub fn processor(self, value: String) -> Self
pub fn python_v(self, value: String) -> Self
pub fn socket_fqdn(self, value: String) -> Self
pub fn socket_hostname(self, value: String) -> Self
pub fn win_v(self, value: Vec<Value>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostMeta
impl<'de> Deserialize<'de> for HostMeta
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 StructuralPartialEq for HostMeta
Auto Trait Implementations§
impl Freeze for HostMeta
impl RefUnwindSafe for HostMeta
impl Send for HostMeta
impl Sync for HostMeta
impl Unpin for HostMeta
impl UnwindSafe for HostMeta
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