Class Task.Types.TriggerSpec (1.0.0)

public sealed class TriggerSpec : IMessage<Task.Types.TriggerSpec>, IEquatable<Task.Types.TriggerSpec>, IDeepCloneable<Task.Types.TriggerSpec>, IBufferMessage, IMessage

Task scheduling and trigger settings.

Inheritance

Object > Task.Types.TriggerSpec

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Constructors

TriggerSpec()

public TriggerSpec()

TriggerSpec(Task.Types.TriggerSpec)

public TriggerSpec(Task.Types.TriggerSpec other)
Parameter
NameDescription
otherTask.Types.TriggerSpec

Properties

Disabled

public bool Disabled { get; set; }

Optional. Prevent the task from executing. This does not cancel already running tasks. It is intended to temporarily disable RECURRING tasks.

Property Value
TypeDescription
Boolean

MaxRetries

public int MaxRetries { get; set; }

Optional. Number of retry attempts before aborting. Set to zero to never attempt to retry a failed task.

Property Value
TypeDescription
Int32

Schedule

public string Schedule { get; set; }

Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *". This field is required for RECURRING tasks.

Property Value
TypeDescription
String

StartTime

public Timestamp StartTime { get; set; }

Optional. The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.

Property Value
TypeDescription
Timestamp

TriggerCase

public Task.Types.TriggerSpec.TriggerOneofCase TriggerCase { get; }
Property Value
TypeDescription
Task.Types.TriggerSpec.TriggerOneofCase

Type

public Task.Types.TriggerSpec.Types.Type Type { get; set; }

Required. Immutable. Trigger type of the user-specified Task.

Property Value
TypeDescription
Task.Types.TriggerSpec.Types.Type