Interface RequestsOrBuilder (2.57.0)

public interface RequestsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLongTermAllowed()

public abstract int getLongTermAllowed()

Allowed RPS (requests per second) over the long term.

int32 long_term_allowed = 3;

Returns
Type Description
int

The longTermAllowed.

getLongTermDenied()

public abstract int getLongTermDenied()

Denied RPS (requests per second) over the long term.

int32 long_term_denied = 4;

Returns
Type Description
int

The longTermDenied.

getRatio()

public abstract double getRatio()

For 'Increasing deny ratio', the ratio is the denied traffic divided by the allowed traffic. For 'Allowed traffic spike', the ratio is the allowed traffic in the short term divided by allowed traffic in the long term.

double ratio = 1;

Returns
Type Description
double

The ratio.

getShortTermAllowed()

public abstract int getShortTermAllowed()

Allowed RPS (requests per second) in the short term.

int32 short_term_allowed = 2;

Returns
Type Description
int

The shortTermAllowed.