File tree Expand file tree Collapse file tree
google/cloud/batch/v1alpha Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,15 @@ message Job {
114114// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
115115// preserved.
116116message LogsPolicy {
117+ // CloudLoggingOption contains additional settings for cloud logging generated
118+ // by Batch job.
119+ message CloudLoggingOption {
120+ // Optional. Set this flag to true to use generic_task as monitored resource
121+ // for Batch job generated cloud logging.
122+ bool use_generic_task_monitored_resource = 1
123+ [(google.api.field_behavior ) = OPTIONAL ];
124+ }
125+
117126 // The destination (if any) for logs.
118127 enum Destination {
119128 // Logs are not preserved.
@@ -133,6 +142,11 @@ message LogsPolicy {
133142 // local file path on the VM, or under the mount point of a Persistent Disk or
134143 // Filestore, or a Cloud Storage path.
135144 string logs_path = 2 ;
145+
146+ // Optional. Additional settings for Cloud Logging. It will only take effect
147+ // when the destination of LogsPolicy is set to CLOUD_LOGGING.
148+ CloudLoggingOption cloud_logging_option = 3
149+ [(google.api.field_behavior ) = OPTIONAL ];
136150}
137151
138152// JobDependency describes the state of other Jobs that the start of this Job
You can’t perform that action at this time.
0 commit comments