#[non_exhaustive]pub struct MonitoringConfig {
pub component_config: Option<MonitoringComponentConfig>,
pub managed_prometheus_config: Option<ManagedPrometheusConfig>,
pub advanced_datapath_observability_config: Option<AdvancedDatapathObservabilityConfig>,
/* private fields */
}Expand description
MonitoringConfig is cluster monitoring configuration.
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.component_config: Option<MonitoringComponentConfig>Monitoring components configuration
managed_prometheus_config: Option<ManagedPrometheusConfig>Enable Google Cloud Managed Service for Prometheus in the cluster.
advanced_datapath_observability_config: Option<AdvancedDatapathObservabilityConfig>Configuration of Advanced Datapath Observability features.
Implementations§
Source§impl MonitoringConfig
impl MonitoringConfig
pub fn new() -> Self
Sourcepub fn set_component_config<T>(self, v: T) -> Selfwhere
T: Into<MonitoringComponentConfig>,
pub fn set_component_config<T>(self, v: T) -> Selfwhere
T: Into<MonitoringComponentConfig>,
Sets the value of component_config.
Sourcepub fn set_or_clear_component_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MonitoringComponentConfig>,
pub fn set_or_clear_component_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MonitoringComponentConfig>,
Sets or clears the value of component_config.
Sourcepub fn set_managed_prometheus_config<T>(self, v: T) -> Selfwhere
T: Into<ManagedPrometheusConfig>,
pub fn set_managed_prometheus_config<T>(self, v: T) -> Selfwhere
T: Into<ManagedPrometheusConfig>,
Sets the value of managed_prometheus_config.
Sourcepub fn set_or_clear_managed_prometheus_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedPrometheusConfig>,
pub fn set_or_clear_managed_prometheus_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedPrometheusConfig>,
Sets or clears the value of managed_prometheus_config.
Sourcepub fn set_advanced_datapath_observability_config<T>(self, v: T) -> Selfwhere
T: Into<AdvancedDatapathObservabilityConfig>,
pub fn set_advanced_datapath_observability_config<T>(self, v: T) -> Selfwhere
T: Into<AdvancedDatapathObservabilityConfig>,
Sets the value of advanced_datapath_observability_config.
Sourcepub fn set_or_clear_advanced_datapath_observability_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AdvancedDatapathObservabilityConfig>,
pub fn set_or_clear_advanced_datapath_observability_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AdvancedDatapathObservabilityConfig>,
Sets or clears the value of advanced_datapath_observability_config.
Trait Implementations§
Source§impl Clone for MonitoringConfig
impl Clone for MonitoringConfig
Source§fn clone(&self) -> MonitoringConfig
fn clone(&self) -> MonitoringConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 MonitoringConfig
impl Debug for MonitoringConfig
Source§impl Default for MonitoringConfig
impl Default for MonitoringConfig
Source§fn default() -> MonitoringConfig
fn default() -> MonitoringConfig
Returns the “default value” for a type. Read more
Source§impl Message for MonitoringConfig
impl Message for MonitoringConfig
Source§impl PartialEq for MonitoringConfig
impl PartialEq for MonitoringConfig
impl StructuralPartialEq for MonitoringConfig
Auto Trait Implementations§
impl Freeze for MonitoringConfig
impl RefUnwindSafe for MonitoringConfig
impl Send for MonitoringConfig
impl Sync for MonitoringConfig
impl Unpin for MonitoringConfig
impl UnwindSafe for MonitoringConfig
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