pub struct AgentPolicySpec {Show 15 fields
pub id: String,
pub name: String,
pub namespace: String,
pub description: Option<String>,
pub inactivity_timeout: u64,
pub unenroll_timeout: Option<u64>,
pub monitoring_enabled: Vec<String>,
pub agent_features: Vec<Value>,
pub global_data_tags: Vec<Value>,
pub advanced_settings: Option<Map<String, Value>>,
pub overrides: Option<Map<String, Value>>,
pub keep_monitoring_alive: Option<bool>,
pub monitoring_pprof_enabled: Option<bool>,
pub monitoring_http: Option<Map<String, Value>>,
pub monitoring_diagnostics: Option<Map<String, Value>>,
}Expand description
The portable, author-controlled agent-policy representation.
Fields§
§id: String§name: String§namespace: String§description: Option<String>§inactivity_timeout: u64§unenroll_timeout: Option<u64>§monitoring_enabled: Vec<String>§agent_features: Vec<Value>§advanced_settings: Option<Map<String, Value>>§overrides: Option<Map<String, Value>>§keep_monitoring_alive: Option<bool>§monitoring_pprof_enabled: Option<bool>§monitoring_http: Option<Map<String, Value>>§monitoring_diagnostics: Option<Map<String, Value>>Implementations§
Trait Implementations§
Source§impl Clone for AgentPolicySpec
impl Clone for AgentPolicySpec
Source§fn clone(&self) -> AgentPolicySpec
fn clone(&self) -> AgentPolicySpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentPolicySpec
impl Debug for AgentPolicySpec
Source§impl<'de> Deserialize<'de> for AgentPolicySpec
impl<'de> Deserialize<'de> for AgentPolicySpec
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
Source§impl PartialEq for AgentPolicySpec
impl PartialEq for AgentPolicySpec
Source§impl Serialize for AgentPolicySpec
impl Serialize for AgentPolicySpec
impl StructuralPartialEq for AgentPolicySpec
Auto Trait Implementations§
impl Freeze for AgentPolicySpec
impl RefUnwindSafe for AgentPolicySpec
impl Send for AgentPolicySpec
impl Sync for AgentPolicySpec
impl Unpin for AgentPolicySpec
impl UnsafeUnpin for AgentPolicySpec
impl UnwindSafe for AgentPolicySpec
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