Batch V1 API - Class Google::Cloud::Batch::V1::LogsPolicy (v0.20.0)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::LogsPolicy.

LogsPolicy describes if and how a job's logs are preserved. Logs include information that is automatically written by the Batch service agent and any information that you configured the job's runnables to write to the stdout or stderr streams.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cloud_logging_option

def cloud_logging_option() -> ::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption
Returns

#cloud_logging_option=

def cloud_logging_option=(value) -> ::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption
Parameter
Returns

#destination

def destination() -> ::Google::Cloud::Batch::V1::LogsPolicy::Destination
Returns

#destination=

def destination=(value) -> ::Google::Cloud::Batch::V1::LogsPolicy::Destination
Parameter
Returns

#logs_path

def logs_path() -> ::String
Returns
  • (::String) — When destination is set to PATH, you must set this field to the path where you want logs to be saved. This path can point to a local directory on the VM or (if congifured) a directory under the mount path of any Cloud Storage bucket, network file system (NFS), or writable persistent disk that is mounted to the job. For example, if the job has a bucket with mountPath set to /mnt/disks/my-bucket, you can write logs to the root directory of the remotePath of that bucket by setting this field to /mnt/disks/my-bucket/.

#logs_path=

def logs_path=(value) -> ::String
Parameter
  • value (::String) — When destination is set to PATH, you must set this field to the path where you want logs to be saved. This path can point to a local directory on the VM or (if congifured) a directory under the mount path of any Cloud Storage bucket, network file system (NFS), or writable persistent disk that is mounted to the job. For example, if the job has a bucket with mountPath set to /mnt/disks/my-bucket, you can write logs to the root directory of the remotePath of that bucket by setting this field to /mnt/disks/my-bucket/.
Returns
  • (::String) — When destination is set to PATH, you must set this field to the path where you want logs to be saved. This path can point to a local directory on the VM or (if congifured) a directory under the mount path of any Cloud Storage bucket, network file system (NFS), or writable persistent disk that is mounted to the job. For example, if the job has a bucket with mountPath set to /mnt/disks/my-bucket, you can write logs to the root directory of the remotePath of that bucket by setting this field to /mnt/disks/my-bucket/.