Reference documentation and code samples for the Google Cloud Run V2 Client class TaskAttemptResult.
Result of a task attempt.
Generated from protobuf message google.cloud.run.v2.TaskAttemptResult
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ status
Google\Rpc\Status
Output only. The status of this attempt. If the status code is OK, then the attempt succeeded.
↳ exit_code
int
Output only. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details. At most one of exit_code or term_signal will be set.
↳ term_signal
int
Output only. Termination signal of the container. This is set to non-zero if the container is terminated by the system. At most one of exit_code or term_signal will be set.
getStatus
Output only. The status of this attempt.
If the status code is OK, then the attempt succeeded.
hasStatus
clearStatus
setStatus
Output only. The status of this attempt.
If the status code is OK, then the attempt succeeded.
$this
getExitCode
Output only. The exit code of this attempt.
This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details. At most one of exit_code or term_signal will be set.
int
setExitCode
Output only. The exit code of this attempt.
This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details. At most one of exit_code or term_signal will be set.
var
int
$this
getTermSignal
Output only. Termination signal of the container. This is set to non-zero if the container is terminated by the system.
At most one of exit_code or term_signal will be set.
int
setTermSignal
Output only. Termination signal of the container. This is set to non-zero if the container is terminated by the system.
At most one of exit_code or term_signal will be set.
var
int
$this