pub struct SubnetworkLogConfig {
pub aggregation_interval: Option<String>,
pub enable: Option<bool>,
pub filter_expr: Option<String>,
pub flow_sampling: Option<f32>,
pub metadata: Option<String>,
pub metadata_fields: Option<Vec<String>>,
}
Expand description
The available logging options for this subnetwork.
This type is not used in any activity, and only used as part of another schema.
Fields§
§aggregation_interval: Option<String>
Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
enable: Option<bool>
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn’t supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
filter_expr: Option<String>
Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
flow_sampling: Option<f32>
Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
metadata: Option<String>
Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
metadata_fields: Option<Vec<String>>
Can only be specified if VPC flow logs for this subnetwork is enabled and “metadata” was set to CUSTOM_METADATA.
Trait Implementations§
Source§impl Clone for SubnetworkLogConfig
impl Clone for SubnetworkLogConfig
Source§fn clone(&self) -> SubnetworkLogConfig
fn clone(&self) -> SubnetworkLogConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SubnetworkLogConfig
impl Debug for SubnetworkLogConfig
Source§impl Default for SubnetworkLogConfig
impl Default for SubnetworkLogConfig
Source§fn default() -> SubnetworkLogConfig
fn default() -> SubnetworkLogConfig
Source§impl<'de> Deserialize<'de> for SubnetworkLogConfig
impl<'de> Deserialize<'de> for SubnetworkLogConfig
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>,
Source§impl Serialize for SubnetworkLogConfig
impl Serialize for SubnetworkLogConfig
impl Part for SubnetworkLogConfig
Auto Trait Implementations§
impl Freeze for SubnetworkLogConfig
impl RefUnwindSafe for SubnetworkLogConfig
impl Send for SubnetworkLogConfig
impl Sync for SubnetworkLogConfig
impl Unpin for SubnetworkLogConfig
impl UnwindSafe for SubnetworkLogConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more