Class ScheduledCronTask
Information about a scheduled cron task.
Implements
Namespace: Google.Backstory
Assembly: Google.Backstory.dll
Syntax
public sealed class ScheduledCronTask : IMessage<ScheduledCronTask>, IEquatable<ScheduledCronTask>, IDeepCloneable<ScheduledCronTask>, IBufferMessage, IMessage
Constructors
ScheduledCronTask()
Declaration
public ScheduledCronTask()
ScheduledCronTask(ScheduledCronTask)
Declaration
public ScheduledCronTask(ScheduledCronTask other)
Parameters
| Type | Name | Description |
|---|---|---|
| ScheduledCronTask | other |
Properties
Author
The author or creator of the task.
Declaration
public string Author { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Comment
A comment or description for the task.
Declaration
public string Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Event
Crontab special string or event (e.g., "@reboot", "@daily").
Declaration
public string Event { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Hour
Crontab hour field. Value is an integer between 0 and 23, a range or list of values (e.g., "0-6", "/2", "1,2"), or an asterisk () to indicate first-last hours.
Declaration
public string Hour { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Minute
Crontab minute field. Value is an integer between 0 and 59 and can also be a range or list of values (e.g., "0-59", "0-59/5", "0,15,30,45") and it // can also be an asterisk (*) to indicate first-last minutes. More on crontab format can be found here: https://www.linux.org/docs/man5/crontab.html
Declaration
public string Minute { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Month
Crontab month field. Value is an integer between 1 and 12 or a 3-letter name (e.g., "Jan"), a range or list of values (e.g., "1-3", "/2", "1,6"), or an asterisk () to indicate first-last months.
Declaration
public string Month { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MonthDay
Crontab day of month field. Value is an integer between 1 and 31, a range or list of values (e.g., "1-7", "1-31/7", "1,15"), or an asterisk (*) to indicate first-last days of month.
Declaration
public string MonthDay { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Path
The PATH environment variable defined in the crontab file.
Declaration
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WeekDay
Crontab day of week field. Value is an integer between 0 and 7 (0 or 7 is Sunday) or a 3-letter name (e.g., "Fri"), a range or list of values (e.g., "1-5", "0,6"), or an asterisk (*) to indicate first-last days of week.
Declaration
public string WeekDay { get; set; }
Property Value
| Type | Description |
|---|---|
| string |