public sealed class GrpcRoute.Types.FaultInjectionPolicy.Types.Abort : IMessage<GrpcRoute.Types.FaultInjectionPolicy.Types.Abort>, IEquatable<GrpcRoute.Types.FaultInjectionPolicy.Types.Abort>, IDeepCloneable<GrpcRoute.Types.FaultInjectionPolicy.Types.Abort>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class GrpcRoute.Types.FaultInjectionPolicy.Types.Abort.
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
Implements
IMessageGrpcRouteTypesFaultInjectionPolicyTypesAbort, IEquatableGrpcRouteTypesFaultInjectionPolicyTypesAbort, IDeepCloneableGrpcRouteTypesFaultInjectionPolicyTypesAbort, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkServices.V1Assembly
Google.Cloud.NetworkServices.V1.dll
Constructors
Abort()
public Abort()
Abort(Abort)
public Abort(GrpcRoute.Types.FaultInjectionPolicy.Types.Abort other)
Parameter | |
---|---|
Name | Description |
other |
GrpcRouteTypesFaultInjectionPolicyTypesAbort |
Properties
HasHttpStatus
public bool HasHttpStatus { get; }
Gets whether the "http_status" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasPercentage
public bool HasPercentage { get; }
Gets whether the "percentage" field is set
Property Value | |
---|---|
Type | Description |
bool |
HttpStatus
public int HttpStatus { get; set; }
The HTTP status code used to abort the request.
The value must be between 200 and 599 inclusive.
Property Value | |
---|---|
Type | Description |
int |
Percentage
public int Percentage { get; set; }
The percentage of traffic which will be aborted.
The value must be between [0, 100]
Property Value | |
---|---|
Type | Description |
int |