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
Namespace
Google \ Cloud \ Functions \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ retry |
Google\Cloud\Functions\V1\FailurePolicy\Retry
If specified, then the function will be retried in case of a failure. |
getRetry
If specified, then the function will be retried in case of a failure.
Returns | |
---|---|
Type | Description |
Google\Cloud\Functions\V1\FailurePolicy\Retry|null |
hasRetry
setRetry
If specified, then the function will be 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 |