pub struct Host {Show 13 fields
pub name: String,
pub aliases: Vec<String>,
pub apps: Vec<String>,
pub tags_by_source: Option<Value>,
pub up: Option<bool>,
pub last_reported_time: Option<i64>,
pub sources: Vec<String>,
pub is_muted: Option<bool>,
pub mute_timeout: Option<i64>,
pub id: Option<i64>,
pub host_name: Option<String>,
pub meta: Option<Value>,
pub metrics: Option<Value>,
}Expand description
A reporting host as returned by GET /api/v1/hosts.
Datadog returns dozens of fields per host; only the ones surfaced by
the table renderer are typed. meta, metrics, and tags_by_source
are preserved as raw JSON for -o json/yaml output.
Fields§
§name: StringHostname as reported by the agent.
aliases: Vec<String>Alternate names (e.g. EC2 instance id, FQDN).
apps: Vec<String>Apps (integrations) reporting on this host.
Tag map keyed by source (raw — schema is { source: [tag, ...] }).
up: Option<bool>Whether the host is currently reporting.
last_reported_time: Option<i64>Last time the host reported, in Unix epoch seconds.
sources: Vec<String>Sources Datadog has data from (e.g. agent, aws).
is_muted: Option<bool>Whether the host is currently muted.
mute_timeout: Option<i64>Optional mute timeout (epoch seconds).
id: Option<i64>Datadog-internal numeric host id.
host_name: Option<String>Reporting hostname (occasionally distinct from name).
meta: Option<Value>Per-source meta block (raw).
metrics: Option<Value>Per-host metrics block (raw).
Implementations§
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>,
impl Eq for Host
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.