Skip to content

Commit 8690a75

Browse files
Google APIscopybara-github
authored andcommitted
feat: add a CloudLoggingOption and use_generic_task_monitored_resource fields for users to opt out new batch monitored resource in cloud logging
PiperOrigin-RevId: 582090179
1 parent 379633a commit 8690a75

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

google/cloud/batch/v1alpha/job.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ message Job {
114114
// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
115115
// preserved.
116116
message 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

0 commit comments

Comments
 (0)