Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::RouterNatLogConfig.
Configuration of logging on a NAT.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#enable
def enable() -> ::Boolean- (::Boolean) — Indicates whether or not to export logs. This is false by default.
#enable=
def enable=(value) -> ::Boolean- value (::Boolean) — Indicates whether or not to export logs. This is false by default.
- (::Boolean) — Indicates whether or not to export logs. This is false by default.
#filter
def filter() -> ::String-
(::String) —
Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values:
- ERRORS_ONLY: Export logs only for connection failures.
- TRANSLATIONS_ONLY: Export logs only for successful connections.
- ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.
#filter=
def filter=(value) -> ::String-
value (::String) —
Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values:
- ERRORS_ONLY: Export logs only for connection failures.
- TRANSLATIONS_ONLY: Export logs only for successful connections.
- ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.
-
(::String) —
Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values:
- ERRORS_ONLY: Export logs only for connection failures.
- TRANSLATIONS_ONLY: Export logs only for successful connections.
- ALL: Export logs for all connections, successful and unsuccessful. Check the Filter enum for the list of possible values.