#[non_exhaustive]pub struct Host {Show 15 fields
pub aliases: Option<Vec<String>>,
pub apps: Option<Vec<String>>,
pub aws_name: Option<String>,
pub host_name: Option<String>,
pub id: Option<i64>,
pub is_muted: Option<bool>,
pub last_reported_time: Option<i64>,
pub meta: Option<HostMeta>,
pub metrics: Option<HostMetrics>,
pub mute_timeout: Option<Option<i64>>,
pub name: Option<String>,
pub sources: Option<Vec<String>>,
pub tags_by_source: Option<BTreeMap<String, Vec<String>>>,
pub up: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Object representing a 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.aliases: Option<Vec<String>>
Host aliases collected by Datadog.
apps: Option<Vec<String>>
The Datadog integrations reporting metrics for the host.
aws_name: Option<String>
AWS name of your host.
host_name: Option<String>
The host name.
id: Option<i64>
The host ID.
is_muted: Option<bool>
If a host is muted or unmuted.
last_reported_time: Option<i64>
Last time the host reported a metric data point.
meta: Option<HostMeta>
Metadata associated with your host.
metrics: Option<HostMetrics>
Host Metrics collected.
mute_timeout: Option<Option<i64>>
Timeout of the mute applied to your host.
name: Option<String>
The host name.
sources: Option<Vec<String>>
Source or cloud provider associated with your host.
List of tags for each source (AWS, Datadog Agent, Chef..).
up: Option<bool>
Displays UP when the expected metrics are received and displays ???
if no metrics are received.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl Host
impl Host
pub fn new() -> Host
pub fn aliases(self, value: Vec<String>) -> Self
pub fn apps(self, value: Vec<String>) -> Self
pub fn aws_name(self, value: String) -> Self
pub fn host_name(self, value: String) -> Self
pub fn id(self, value: i64) -> Self
pub fn is_muted(self, value: bool) -> Self
pub fn last_reported_time(self, value: i64) -> Self
pub fn meta(self, value: HostMeta) -> Self
pub fn metrics(self, value: HostMetrics) -> Self
pub fn mute_timeout(self, value: Option<i64>) -> Self
pub fn name(self, value: String) -> Self
pub fn sources(self, value: Vec<String>) -> Self
pub fn up(self, value: bool) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Host
impl<'de> Deserialize<'de> for Host
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 Host
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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