Skip to content

Commit 8ab0e5b

Browse files
feat: [batch] add a CloudLoggingOption and use_generic_task_monitored_resource fields for users to opt out new batch monitored resource in cloud logging (#4812)
* 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 Source-Link: googleapis/googleapis@8690a75 Source-Link: googleapis/googleapis-gen@dc7262f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiJkYzcyNjJmYmYzMTZiODMyNDhjZGJkNGNlNmM5ZjEyNmEzZDAyYjFhIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 994b49a commit 8ab0e5b

4 files changed

Lines changed: 366 additions & 0 deletions

File tree

packages/google-cloud-batch/protos/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

packages/google-cloud-batch/protos/protos.d.ts

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)