Reference documentation and code samples for the Google Cloud Functions V1 Client class FailurePolicy.
Describes the policy in case of function's execution failure.
If empty, then defaults to ignoring failures (i.e., not retrying them).
Generated from protobuf message google.cloud.functions.v1.FailurePolicy
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ retry |
Google\Cloud\Functions\V1\FailurePolicy\Retry
If specified, the function is retried in case of a failure. |
getRetry
If specified, the function is retried in case of a failure.
Returns | |
---|---|
Type | Description |
Google\Cloud\Functions\V1\FailurePolicy\Retry|null |
hasRetry
setRetry
If specified, the function is retried in case of a failure.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Functions\V1\FailurePolicy\Retry
|
Returns | |
---|---|
Type | Description |
$this |
getAction
Returns | |
---|---|
Type | Description |
string |