Struct google_api_proto::google::cloud::compute::v1::SubnetworkLogConfig
source · 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: Vec<String>,
}
Expand description
The available logging options for this subnetwork.
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. Check the AggregationInterval enum for the list of possible values.
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. Check the Metadata enum for the list of possible values.
metadata_fields: Vec<String>
Can only be specified if VPC flow logs for this subnetwork is enabled and “metadata” was set to CUSTOM_METADATA.
Implementations§
source§impl SubnetworkLogConfig
impl SubnetworkLogConfig
sourcepub fn metadata(&self) -> &str
pub fn metadata(&self) -> &str
Returns the value of metadata
, or the default value if metadata
is unset.
sourcepub fn aggregation_interval(&self) -> &str
pub fn aggregation_interval(&self) -> &str
Returns the value of aggregation_interval
, or the default value if aggregation_interval
is unset.
sourcepub fn filter_expr(&self) -> &str
pub fn filter_expr(&self) -> &str
Returns the value of filter_expr
, or the default value if filter_expr
is unset.
sourcepub fn enable(&self) -> bool
pub fn enable(&self) -> bool
Returns the value of enable
, or the default value if enable
is unset.
sourcepub fn flow_sampling(&self) -> f32
pub fn flow_sampling(&self) -> f32
Returns the value of flow_sampling
, or the default value if flow_sampling
is unset.
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§impl Message for SubnetworkLogConfig
impl Message for SubnetworkLogConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SubnetworkLogConfig
impl PartialEq for SubnetworkLogConfig
source§fn eq(&self, other: &SubnetworkLogConfig) -> bool
fn eq(&self, other: &SubnetworkLogConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request