Interface HttpRoute.FaultInjectionPolicy.AbortOrBuilder (0.8.0)

public static interface HttpRoute.FaultInjectionPolicy.AbortOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHttpStatus()

public abstract int getHttpStatus()

The HTTP status code used to abort the request.

The value must be between 200 and 599 inclusive.

int32 http_status = 1;

Returns
Type Description
int

The httpStatus.

getPercentage()

public abstract int getPercentage()

The percentage of traffic which will be aborted.

The value must be between [0, 100]

int32 percentage = 2;

Returns
Type Description
int

The percentage.