Struct google_compute1::api::SubnetworkLogConfig[][src]

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>>,
}

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 to disable flow logging.

filter_expr: Option<String>

Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.

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, 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

impl Clone for SubnetworkLogConfig[src]

impl Debug for SubnetworkLogConfig[src]

impl Default for SubnetworkLogConfig[src]

impl<'de> Deserialize<'de> for SubnetworkLogConfig[src]

impl Part for SubnetworkLogConfig[src]

impl Serialize for SubnetworkLogConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for SubnetworkLogConfig[src]

impl Send for SubnetworkLogConfig[src]

impl Sync for SubnetworkLogConfig[src]

impl Unpin for SubnetworkLogConfig[src]

impl UnwindSafe for SubnetworkLogConfig[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.