Reference documentation and code samples for the Google Cloud Chronicle Client class ScheduledCronTask.
Information about a scheduled cron task.
Generated from protobuf message google.backstory.ScheduledCronTask
Namespace
Google \ Backstory
Methods
__construct
| Parameter |
| Name |
Description |
data |
mixed
|
getMinute
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
| Returns |
| Type |
Description |
string |
|
setMinute
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
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getHour
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.
| Returns |
| Type |
Description |
string |
|
setHour
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.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getMonthDay
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.
| Returns |
| Type |
Description |
string |
|
setMonthDay
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.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getMonth
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.
| Returns |
| Type |
Description |
string |
|
setMonth
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.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getWeekDay
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.
| Returns |
| Type |
Description |
string |
|
setWeekDay
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.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
A comment or description for the task.
| Returns |
| Type |
Description |
string |
|
A comment or description for the task.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getAuthor
The author or creator of the task.
| Returns |
| Type |
Description |
string |
|
setAuthor
The author or creator of the task.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getEvent
Crontab special string or event (e.g., "@reboot", "@daily").
| Returns |
| Type |
Description |
string |
|
setEvent
Crontab special string or event (e.g., "@reboot", "@daily").
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getPath
The PATH environment variable defined in the crontab file.
| Returns |
| Type |
Description |
string |
|
setPath
The PATH environment variable defined in the crontab file.
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|