Google Cloud Batch V1 Client - Class JobStatus (1.2.2)

Reference documentation and code samples for the Google Cloud Batch V1 Client class JobStatus.

Job status.

Generated from protobuf message google.cloud.batch.v1.JobStatus

Namespace

Google \ Cloud \ Batch \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ state
int

Job state

↳ status_events
array< StatusEvent >

Job status events

↳ task_groups
array| Google\Protobuf\Internal\MapField

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

↳ run_duration
Google\Protobuf\Duration

The duration of time that the Job spent in status RUNNING.

getState

Job state

Returns
Type
Description
int

setState

Job state

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getStatusEvents

Job status events

Returns
Type
Description

setStatusEvents

Job status events

Parameter
Name
Description
var
array< StatusEvent >
Returns
Type
Description
$this

getTaskGroups

Aggregated task status for each TaskGroup in the Job.

The map key is TaskGroup ID.

Returns
Type
Description

setTaskGroups

Aggregated task status for each TaskGroup in the Job.

The map key is TaskGroup ID.

Parameter
Name
Description
Returns
Type
Description
$this

getRunDuration

The duration of time that the Job spent in status RUNNING.

Returns
Type
Description

hasRunDuration

clearRunDuration

setRunDuration

The duration of time that the Job spent in status RUNNING.

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: