Google Cloud Chronicle Client - Class TaskTrigger (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class TaskTrigger.

The trigger of the scheduled task.

Generated from protobuf message google.backstory.WindowsScheduledTask.TaskTrigger

Namespace

Google \ Backstory \ WindowsScheduledTask

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enabled bool

Indicates whether the task trigger is enabled.

↳ duration Google\Protobuf\Duration

The duration of the task trigger repetition.

↳ interval string

The interval between each repetition of the task. The format for this string is P<days>DT<hours>H<minutes>M<seconds>S (for example, "PT5M" is 5 minutes, "PT1H" is 1 hour, and "PT20M" is 20 minutes). The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.

↳ trigger_type int

The trigger frequency of the task.

getEnabled

Indicates whether the task trigger is enabled.

Returns
Type Description
bool

setEnabled

Indicates whether the task trigger is enabled.

Parameter
Name Description
var bool
Returns
Type Description
$this

getDuration

The duration of the task trigger repetition.

Returns
Type Description
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

The duration of the task trigger repetition.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getInterval

The interval between each repetition of the task. The format for this string is P<days>DT<hours>H<minutes>M<seconds>S (for example, "PT5M" is 5 minutes, "PT1H" is 1 hour, and "PT20M" is 20 minutes).

The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.

Returns
Type Description
string

setInterval

The interval between each repetition of the task. The format for this string is P<days>DT<hours>H<minutes>M<seconds>S (for example, "PT5M" is 5 minutes, "PT1H" is 1 hour, and "PT20M" is 20 minutes).

The maximum time allowed is 31 days, and the minimum time allowed is 1 minute.

Parameter
Name Description
var string
Returns
Type Description
$this

getTriggerType

The trigger frequency of the task.

Returns
Type Description
int Enum of type TriggerType.

setTriggerType

The trigger frequency of the task.

Parameter
Name Description
var int

Enum of type TriggerType.

Returns
Type Description
$this