LoggingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Specifies the logging behavior for transfer operations.
For cloud-to-cloud transfers, logs are sent to Cloud Logging. See
Read transfer
logs <https://cloud.google.com/storage-transfer/docs/read-transfer-logs>
__
for details.
For transfers to or from a POSIX file system, logs are stored in the Cloud Storage bucket that is the source or sink of the transfer. See Managing Transfer for on-premises jobs for details.
Attributes | |
---|---|
Name | Description |
log_actions |
MutableSequence[google.cloud.storage_transfer_v1.types.LoggingConfig.LoggableAction]
Specifies the actions to be logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs][google.storagetransfer.v1.LoggingConfig.enable_onprem_gcs_transfer_logs]
instead.
|
log_action_states |
MutableSequence[google.cloud.storage_transfer_v1.types.LoggingConfig.LoggableActionState]
States in which log_actions are logged. If empty, no
logs are generated. Not supported for transfers with
PosixFilesystem data sources; use
enable_onprem_gcs_transfer_logs][google.storagetransfer.v1.LoggingConfig.enable_onprem_gcs_transfer_logs]
instead.
|
enable_onprem_gcs_transfer_logs |
bool
For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer. |
Classes
LoggableAction
LoggableAction(value)
Loggable actions.
Values: LOGGABLE_ACTION_UNSPECIFIED (0): Default value. This value is unused. FIND (1): Listing objects in a bucket. DELETE (2): Deleting objects at the source or the destination. COPY (3): Copying objects to Google Cloud Storage.
LoggableActionState
LoggableActionState(value)
Loggable action states.
Values:
LOGGABLE_ACTION_STATE_UNSPECIFIED (0):
Default value. This value is unused.
SUCCEEDED (1):
LoggableAction
completed successfully. SUCCEEDED
actions are logged as
INFO][google.logging.type.LogSeverity.INFO]
.
FAILED (2):
LoggableAction
terminated in an error state. FAILED
actions are logged as
ERROR][google.logging.type.LogSeverity.ERROR]
.