Skip to content

Commit ad35fda

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
docs: update comment for AllocationPolicy.network PiperOrigin-RevId: 584365225
1 parent 740de0f commit ad35fda

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

google/cloud/batch/v1/job.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ message Job {
9191
// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
9292
// preserved.
9393
message LogsPolicy {
94+
// CloudLoggingOption contains additional settings for cloud logging generated
95+
// by Batch job.
96+
message CloudLoggingOption {}
97+
9498
// The destination (if any) for logs.
9599
enum Destination {
96100
// Logs are not preserved.
@@ -110,6 +114,11 @@ message LogsPolicy {
110114
// local file path on the VM, or under the mount point of a Persistent Disk or
111115
// Filestore, or a Cloud Storage path.
112116
string logs_path = 2;
117+
118+
// Optional. Additional settings for Cloud Logging. It will only take effect
119+
// when the destination of LogsPolicy is set to CLOUD_LOGGING.
120+
CloudLoggingOption cloud_logging_option = 3
121+
[(google.api.field_behavior) = OPTIONAL];
113122
}
114123

115124
// Job status.
@@ -507,6 +516,10 @@ message AllocationPolicy {
507516
map<string, string> labels = 6;
508517

509518
// The network policy.
519+
//
520+
// If you define an instance template in the InstancePolicyOrTemplate field,
521+
// Batch will use the network settings in the instance template instead of
522+
// this field.
510523
NetworkPolicy network = 7;
511524

512525
// The placement policy.

0 commit comments

Comments
 (0)