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 Classes: CloudLoggingOption

Instance Attribute Summary collapse

Instance Attribute Details

#cloud_logging_option::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption

Returns Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING.

Returns:



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 100

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

  # `CloudLoggingOption` contains additional settings for Cloud Logging logs
  # generated by Batch job.
  # @!attribute [rw] use_generic_task_monitored_resource
  #   @return [::Boolean]
  #     Optional. Set this flag to true to change the [monitored resource
  #     type](https://cloud.google.com/monitoring/api/resources) for
  #     Cloud Logging logs generated by this Batch job from
  #     the
  #     [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
  #     type to the formerly used
  #     [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
  #     type.
  class CloudLoggingOption
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # 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

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

Returns Where logs should be saved.

Returns:



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 100

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

  # `CloudLoggingOption` contains additional settings for Cloud Logging logs
  # generated by Batch job.
  # @!attribute [rw] use_generic_task_monitored_resource
  #   @return [::Boolean]
  #     Optional. Set this flag to true to change the [monitored resource
  #     type](https://cloud.google.com/monitoring/api/resources) for
  #     Cloud Logging logs generated by this Batch job from
  #     the
  #     [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
  #     type to the formerly used
  #     [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
  #     type.
  class CloudLoggingOption
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # 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.



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 100

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

  # `CloudLoggingOption` contains additional settings for Cloud Logging logs
  # generated by Batch job.
  # @!attribute [rw] use_generic_task_monitored_resource
  #   @return [::Boolean]
  #     Optional. Set this flag to true to change the [monitored resource
  #     type](https://cloud.google.com/monitoring/api/resources) for
  #     Cloud Logging logs generated by this Batch job from
  #     the
  #     [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
  #     type to the formerly used
  #     [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
  #     type.
  class CloudLoggingOption
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # 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