#[non_exhaustive]pub struct MonitoringConfig {
pub component_config: Option<MonitoringComponentConfig>,
pub managed_prometheus_config: Option<ManagedPrometheusConfig>,
pub advanced_datapath_observability_config: Option<AdvancedDatapathObservabilityConfig>,
}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
Sourcepub fn set_component_config<T: Into<Option<MonitoringComponentConfig>>>(
self,
v: T,
) -> Self
pub fn set_component_config<T: Into<Option<MonitoringComponentConfig>>>( self, v: T, ) -> Self
Sets the value of component_config.
Sourcepub fn set_managed_prometheus_config<T: Into<Option<ManagedPrometheusConfig>>>(
self,
v: T,
) -> Self
pub fn set_managed_prometheus_config<T: Into<Option<ManagedPrometheusConfig>>>( self, v: T, ) -> Self
Sets the value of managed_prometheus_config.
Sourcepub fn set_advanced_datapath_observability_config<T: Into<Option<AdvancedDatapathObservabilityConfig>>>(
self,
v: T,
) -> Self
pub fn set_advanced_datapath_observability_config<T: Into<Option<AdvancedDatapathObservabilityConfig>>>( self, v: T, ) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for MonitoringConfigwhere
MonitoringConfig: Default,
impl<'de> Deserialize<'de> for MonitoringConfigwhere
MonitoringConfig: Default,
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 Message for MonitoringConfig
impl Message for MonitoringConfig
Source§impl PartialEq for MonitoringConfig
impl PartialEq for MonitoringConfig
Source§impl Serialize for MonitoringConfig
impl Serialize 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