#[non_exhaustive]pub struct AgentInfoBuilder { /* private fields */ }Expand description
A builder for AgentInfo.
Implementations§
source§impl AgentInfoBuilder
impl AgentInfoBuilder
sourcepub fn set_agent_id(self, input: Option<String>) -> Self
pub fn set_agent_id(self, input: Option<String>) -> Self
The agent or collector ID.
sourcepub fn get_agent_id(&self) -> &Option<String>
pub fn get_agent_id(&self) -> &Option<String>
The agent or collector ID.
sourcepub fn host_name(self, input: impl Into<String>) -> Self
pub fn host_name(self, input: impl Into<String>) -> Self
The name of the host where the agent or collector resides. The host can be a server or virtual machine.
sourcepub fn set_host_name(self, input: Option<String>) -> Self
pub fn set_host_name(self, input: Option<String>) -> Self
The name of the host where the agent or collector resides. The host can be a server or virtual machine.
sourcepub fn get_host_name(&self) -> &Option<String>
pub fn get_host_name(&self) -> &Option<String>
The name of the host where the agent or collector resides. The host can be a server or virtual machine.
sourcepub fn agent_network_info_list(self, input: AgentNetworkInfo) -> Self
pub fn agent_network_info_list(self, input: AgentNetworkInfo) -> Self
Appends an item to agent_network_info_list.
To override the contents of this collection use set_agent_network_info_list.
Network details about the host where the agent or collector resides.
sourcepub fn set_agent_network_info_list(
self,
input: Option<Vec<AgentNetworkInfo>>
) -> Self
pub fn set_agent_network_info_list( self, input: Option<Vec<AgentNetworkInfo>> ) -> Self
Network details about the host where the agent or collector resides.
sourcepub fn get_agent_network_info_list(&self) -> &Option<Vec<AgentNetworkInfo>>
pub fn get_agent_network_info_list(&self) -> &Option<Vec<AgentNetworkInfo>>
Network details about the host where the agent or collector resides.
sourcepub fn connector_id(self, input: impl Into<String>) -> Self
pub fn connector_id(self, input: impl Into<String>) -> Self
The ID of the connector.
sourcepub fn set_connector_id(self, input: Option<String>) -> Self
pub fn set_connector_id(self, input: Option<String>) -> Self
The ID of the connector.
sourcepub fn get_connector_id(&self) -> &Option<String>
pub fn get_connector_id(&self) -> &Option<String>
The ID of the connector.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The agent or collector version.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The agent or collector version.
sourcepub fn health(self, input: AgentStatus) -> Self
pub fn health(self, input: AgentStatus) -> Self
The health of the agent.
sourcepub fn set_health(self, input: Option<AgentStatus>) -> Self
pub fn set_health(self, input: Option<AgentStatus>) -> Self
The health of the agent.
sourcepub fn get_health(&self) -> &Option<AgentStatus>
pub fn get_health(&self) -> &Option<AgentStatus>
The health of the agent.
sourcepub fn last_health_ping_time(self, input: impl Into<String>) -> Self
pub fn last_health_ping_time(self, input: impl Into<String>) -> Self
Time since agent health was reported.
sourcepub fn set_last_health_ping_time(self, input: Option<String>) -> Self
pub fn set_last_health_ping_time(self, input: Option<String>) -> Self
Time since agent health was reported.
sourcepub fn get_last_health_ping_time(&self) -> &Option<String>
pub fn get_last_health_ping_time(&self) -> &Option<String>
Time since agent health was reported.
sourcepub fn collection_status(self, input: impl Into<String>) -> Self
pub fn collection_status(self, input: impl Into<String>) -> Self
Status of the collection process for an agent.
sourcepub fn set_collection_status(self, input: Option<String>) -> Self
pub fn set_collection_status(self, input: Option<String>) -> Self
Status of the collection process for an agent.
sourcepub fn get_collection_status(&self) -> &Option<String>
pub fn get_collection_status(&self) -> &Option<String>
Status of the collection process for an agent.
sourcepub fn agent_type(self, input: impl Into<String>) -> Self
pub fn agent_type(self, input: impl Into<String>) -> Self
Type of agent.
sourcepub fn set_agent_type(self, input: Option<String>) -> Self
pub fn set_agent_type(self, input: Option<String>) -> Self
Type of agent.
sourcepub fn get_agent_type(&self) -> &Option<String>
pub fn get_agent_type(&self) -> &Option<String>
Type of agent.
sourcepub fn registered_time(self, input: impl Into<String>) -> Self
pub fn registered_time(self, input: impl Into<String>) -> Self
Agent's first registration timestamp in UTC.
sourcepub fn set_registered_time(self, input: Option<String>) -> Self
pub fn set_registered_time(self, input: Option<String>) -> Self
Agent's first registration timestamp in UTC.
sourcepub fn get_registered_time(&self) -> &Option<String>
pub fn get_registered_time(&self) -> &Option<String>
Agent's first registration timestamp in UTC.
Trait Implementations§
source§impl Clone for AgentInfoBuilder
impl Clone for AgentInfoBuilder
source§fn clone(&self) -> AgentInfoBuilder
fn clone(&self) -> AgentInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AgentInfoBuilder
impl Debug for AgentInfoBuilder
source§impl Default for AgentInfoBuilder
impl Default for AgentInfoBuilder
source§fn default() -> AgentInfoBuilder
fn default() -> AgentInfoBuilder
source§impl PartialEq for AgentInfoBuilder
impl PartialEq for AgentInfoBuilder
source§fn eq(&self, other: &AgentInfoBuilder) -> bool
fn eq(&self, other: &AgentInfoBuilder) -> bool
self and other values to be equal, and is used
by ==.