Class FailurePolicy (2.0.0)

public sealed class FailurePolicy : IMessage<FailurePolicy>, IEquatable<FailurePolicy>, IDeepCloneable<FailurePolicy>, IBufferMessage, IMessage

Describes the policy in case of function's execution failure. If empty, then defaults to ignoring failures (i.e. not retrying them).

Inheritance

Object > FailurePolicy

Namespace

Google.Cloud.Functions.V1

Assembly

Google.Cloud.Functions.V1.dll

Constructors

FailurePolicy()

public FailurePolicy()

FailurePolicy(FailurePolicy)

public FailurePolicy(FailurePolicy other)
Parameter
NameDescription
otherFailurePolicy

Properties

ActionCase

public FailurePolicy.ActionOneofCase ActionCase { get; }
Property Value
TypeDescription
FailurePolicy.ActionOneofCase

Retry

public FailurePolicy.Types.Retry Retry { get; set; }

If specified, then the function will be retried in case of a failure.

Property Value
TypeDescription
FailurePolicy.Types.Retry