Class: Google::Cloud::StorageTransfer::V1::LoggingConfig
- Inherits:
-
Object
- Object
- Google::Cloud::StorageTransfer::V1::LoggingConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/storagetransfer/v1/transfer_types.rb
Overview
Specifies the logging behavior for transfer operations.
Logs can be sent to Cloud Logging for all transfer types. See Read transfer logs for details.
Defined Under Namespace
Modules: LoggableAction, LoggableActionState
Instance Attribute Summary collapse
-
#enable_onprem_gcs_transfer_logs ⇒ ::Boolean
For PosixFilesystem transfers, enables file system transfer logs instead of, or in addition to, Cloud Logging.
-
#log_action_states ⇒ ::Array<::Google::Cloud::StorageTransfer::V1::LoggingConfig::LoggableActionState>
States in which
log_actions
are logged. -
#log_actions ⇒ ::Array<::Google::Cloud::StorageTransfer::V1::LoggingConfig::LoggableAction>
Specifies the actions to be logged.
Instance Attribute Details
#enable_onprem_gcs_transfer_logs ⇒ ::Boolean
Returns For PosixFilesystem transfers, enables file system transfer logs instead of, or in addition to, Cloud Logging.
This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 1324 class LoggingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Loggable actions. module LoggableAction # Default value. This value is unused. LOGGABLE_ACTION_UNSPECIFIED = 0 # Listing objects in a bucket. FIND = 1 # Deleting objects at the source or the destination. DELETE = 2 # Copying objects to Google Cloud Storage. COPY = 3 end # Loggable action states. module LoggableActionState # Default value. This value is unused. LOGGABLE_ACTION_STATE_UNSPECIFIED = 0 # `LoggableAction` completed successfully. `SUCCEEDED` actions are # logged as [INFO][google.logging.type.LogSeverity.INFO]. SUCCEEDED = 1 # `LoggableAction` terminated in an error state. `FAILED` actions are # logged as [ERROR][google.logging.type.LogSeverity.ERROR]. FAILED = 2 end end |
#log_action_states ⇒ ::Array<::Google::Cloud::StorageTransfer::V1::LoggingConfig::LoggableActionState>
Returns States in which log_actions
are logged. If empty, no logs are generated.
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 1324 class LoggingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Loggable actions. module LoggableAction # Default value. This value is unused. LOGGABLE_ACTION_UNSPECIFIED = 0 # Listing objects in a bucket. FIND = 1 # Deleting objects at the source or the destination. DELETE = 2 # Copying objects to Google Cloud Storage. COPY = 3 end # Loggable action states. module LoggableActionState # Default value. This value is unused. LOGGABLE_ACTION_STATE_UNSPECIFIED = 0 # `LoggableAction` completed successfully. `SUCCEEDED` actions are # logged as [INFO][google.logging.type.LogSeverity.INFO]. SUCCEEDED = 1 # `LoggableAction` terminated in an error state. `FAILED` actions are # logged as [ERROR][google.logging.type.LogSeverity.ERROR]. FAILED = 2 end end |
#log_actions ⇒ ::Array<::Google::Cloud::StorageTransfer::V1::LoggingConfig::LoggableAction>
Returns Specifies the actions to be logged. If empty, no logs are generated.
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 |
# File 'proto_docs/google/storagetransfer/v1/transfer_types.rb', line 1324 class LoggingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Loggable actions. module LoggableAction # Default value. This value is unused. LOGGABLE_ACTION_UNSPECIFIED = 0 # Listing objects in a bucket. FIND = 1 # Deleting objects at the source or the destination. DELETE = 2 # Copying objects to Google Cloud Storage. COPY = 3 end # Loggable action states. module LoggableActionState # Default value. This value is unused. LOGGABLE_ACTION_STATE_UNSPECIFIED = 0 # `LoggableAction` completed successfully. `SUCCEEDED` actions are # logged as [INFO][google.logging.type.LogSeverity.INFO]. SUCCEEDED = 1 # `LoggableAction` terminated in an error state. `FAILED` actions are # logged as [ERROR][google.logging.type.LogSeverity.ERROR]. FAILED = 2 end end |