Batch v1 API - Class LogsPolicy (2.4.0)

public sealed class LogsPolicy : IMessage<LogsPolicy>, IEquatable<LogsPolicy>, IDeepCloneable<LogsPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1 API class LogsPolicy.

LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.

Inheritance

object > LogsPolicy

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

LogsPolicy()

public LogsPolicy()

LogsPolicy(LogsPolicy)

public LogsPolicy(LogsPolicy other)
Parameter
Name Description
other LogsPolicy

Properties

Destination

public LogsPolicy.Types.Destination Destination { get; set; }

Where logs should be saved.

Property Value
Type Description
LogsPolicy Types Destination

LogsPath

public string LogsPath { get; set; }

The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.

Property Value
Type Description
string

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月05日 UTC.