Reference documentation and code samples for the Network Management V1 API class Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig.
A configuration to generate VPC Flow Logs.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#aggregation_interval
def aggregation_interval() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval) — Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
#aggregation_interval=
def aggregation_interval=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval
- value (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval) — Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval) — Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the config was created.
#description
def description() -> ::String
- (::String) — Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
#description=
def description=(value) -> ::String
- value (::String) — Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
- (::String) — Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
#filter_expr
def filter_expr() -> ::String
- (::String) — Optional. Export filter used to define which VPC Flow Logs should be logged.
#filter_expr=
def filter_expr=(value) -> ::String
- value (::String) — Optional. Export filter used to define which VPC Flow Logs should be logged.
- (::String) — Optional. Export filter used to define which VPC Flow Logs should be logged.
#flow_sampling
def flow_sampling() -> ::Float
- (::Float) — Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
#flow_sampling=
def flow_sampling=(value) -> ::Float
- value (::Float) — Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
- (::Float) — Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
#interconnect_attachment
def interconnect_attachment() -> ::String
-
(::String) — Traffic will be logged from the Interconnect Attachment.
Format:
projects/{project_id}/regions/{region}/interconnectAttachments/{name}
Note: The following fields are mutually exclusive:
interconnect_attachment
,vpn_tunnel
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interconnect_attachment=
def interconnect_attachment=(value) -> ::String
-
value (::String) — Traffic will be logged from the Interconnect Attachment.
Format:
projects/{project_id}/regions/{region}/interconnectAttachments/{name}
Note: The following fields are mutually exclusive:
interconnect_attachment
,vpn_tunnel
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Traffic will be logged from the Interconnect Attachment.
Format:
projects/{project_id}/regions/{region}/interconnectAttachments/{name}
Note: The following fields are mutually exclusive:
interconnect_attachment
,vpn_tunnel
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Resource labels to represent user-provided metadata.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Resource labels to represent user-provided metadata.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Resource labels to represent user-provided metadata.
#metadata
def metadata() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata) — Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
#metadata=
def metadata=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata
- value (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata) — Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata) — Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
#metadata_fields
def metadata_fields() -> ::Array<::String>
- (::Array<::String>) — Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
#metadata_fields=
def metadata_fields=(value) -> ::Array<::String>
- value (::Array<::String>) — Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
- (::Array<::String>) — Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
#name
def name() -> ::String
-
(::String) — Identifier. Unique name of the configuration using the form:
projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}
#name=
def name=(value) -> ::String
-
value (::String) — Identifier. Unique name of the configuration using the form:
projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}
-
(::String) — Identifier. Unique name of the configuration using the form:
projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}
#state
def state() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State) — Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled.
#state=
def state=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State
- value (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State) — Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled.
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State) — Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled.
#target_resource_state
def target_resource_state() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::TargetResourceState
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::TargetResourceState) — Output only. A diagnostic bit - describes the state of the configured target resource for diagnostic purposes.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the config was updated.
#vpn_tunnel
def vpn_tunnel() -> ::String
-
(::String) — Traffic will be logged from the VPN Tunnel.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Note: The following fields are mutually exclusive:
vpn_tunnel
,interconnect_attachment
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#vpn_tunnel=
def vpn_tunnel=(value) -> ::String
-
value (::String) — Traffic will be logged from the VPN Tunnel.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Note: The following fields are mutually exclusive:
vpn_tunnel
,interconnect_attachment
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Traffic will be logged from the VPN Tunnel.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Note: The following fields are mutually exclusive:
vpn_tunnel
,interconnect_attachment
. If a field in that set is populated, all other fields in the set will automatically be cleared.