Class: Google::Cloud::Batch::V1::LogsPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/batch/v1/job.rb

Overview

LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.

Defined Under Namespace

Modules: Destination

Instance Attribute Summary collapse

Instance Attribute Details

#destination::Google::Cloud::Batch::V1::LogsPolicy::Destination

Returns Where logs should be saved.

Returns:



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 96

class LogsPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The destination (if any) for logs.
  module Destination
    # Logs are not preserved.
    DESTINATION_UNSPECIFIED = 0

    # Logs are streamed to Cloud Logging.
    CLOUD_LOGGING = 1

    # Logs are saved to a file path.
    PATH = 2
  end
end

#logs_path::String

Returns The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.

Returns:

  • (::String)

    The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 96

class LogsPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The destination (if any) for logs.
  module Destination
    # Logs are not preserved.
    DESTINATION_UNSPECIFIED = 0

    # Logs are streamed to Cloud Logging.
    CLOUD_LOGGING = 1

    # Logs are saved to a file path.
    PATH = 2
  end
end