Skip to content

Commit

Permalink
feat: add a CloudLoggingOption and use_generic_task_monitored_resourc…
Browse files Browse the repository at this point in the history
…e fields for users to opt out new batch monitored resource in cloud logging

PiperOrigin-RevId: 582090179
  • Loading branch information
Google APIs authored and Copybara-Service committed Nov 13, 2023
1 parent 379633a commit 8690a75
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions google/cloud/batch/v1alpha/job.proto
Expand Up @@ -114,6 +114,15 @@ message Job {
// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
// preserved.
message LogsPolicy {
// CloudLoggingOption contains additional settings for cloud logging generated
// by Batch job.
message CloudLoggingOption {
// Optional. Set this flag to true to use generic_task as monitored resource
// for Batch job generated cloud logging.
bool use_generic_task_monitored_resource = 1
[(google.api.field_behavior) = OPTIONAL];
}

// The destination (if any) for logs.
enum Destination {
// Logs are not preserved.
Expand All @@ -133,6 +142,11 @@ message LogsPolicy {
// local file path on the VM, or under the mount point of a Persistent Disk or
// Filestore, or a Cloud Storage path.
string logs_path = 2;

// Optional. Additional settings for Cloud Logging. It will only take effect
// when the destination of LogsPolicy is set to CLOUD_LOGGING.
CloudLoggingOption cloud_logging_option = 3
[(google.api.field_behavior) = OPTIONAL];
}

// JobDependency describes the state of other Jobs that the start of this Job
Expand Down

0 comments on commit 8690a75

Please sign in to comment.