Class AdmissionControl
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.admission_control.v3.AdmissionControl
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AdmissionControlOrBuilder,Serializable
public final class AdmissionControl
extends com.google.protobuf.GeneratedMessageV3
implements AdmissionControlOrBuilder
[#next-free-field: 8]Protobuf type
envoy.extensions.filters.http.admission_control.v3.AdmissionControl- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class[#next-free-field: 8]static enumstatic final classDefault method of specifying what constitutes a successful request.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRejection probability is defined by the formula:: max(0, (rq_count - rq_success_count / sr_threshold) / (rq_count + 1)) ^ (1 / aggression) The aggression dictates how heavily the admission controller will throttle requests upon SR dropping at or below the threshold.Rejection probability is defined by the formula:: max(0, (rq_count - rq_success_count / sr_threshold) / (rq_count + 1)) ^ (1 / aggression) The aggression dictates how heavily the admission controller will throttle requests upon SR dropping at or below the threshold.static AdmissionControlstatic final com.google.protobuf.Descriptors.DescriptorIf set to false, the admission control filter will operate as a pass-through filter.If set to false, the admission control filter will operate as a pass-through filter.The probability of rejection will never exceed this value, even if the failure rate is rising.The probability of rejection will never exceed this value, even if the failure rate is rising.com.google.protobuf.Parser<AdmissionControl>If the average RPS of the sampling window is below this threshold, the request will not be rejected, even if the success rate is lower than sr_threshold.If the average RPS of the sampling window is below this threshold, the request will not be rejected, even if the success rate is lower than sr_threshold.com.google.protobuf.DurationThe sliding time window over which the success rate is calculated.com.google.protobuf.DurationOrBuilderThe sliding time window over which the success rate is calculated.intDictates the success rate at which the rejection probability is non-zero.Dictates the success rate at which the rejection probability is non-zero..envoy.extensions.filters.http.admission_control.v3.AdmissionControl.SuccessCriteria success_criteria = 2;.envoy.extensions.filters.http.admission_control.v3.AdmissionControl.SuccessCriteria success_criteria = 2;booleanRejection probability is defined by the formula:: max(0, (rq_count - rq_success_count / sr_threshold) / (rq_count + 1)) ^ (1 / aggression) The aggression dictates how heavily the admission controller will throttle requests upon SR dropping at or below the threshold.booleanIf set to false, the admission control filter will operate as a pass-through filter.inthashCode()booleanThe probability of rejection will never exceed this value, even if the failure rate is rising.booleanIf the average RPS of the sampling window is below this threshold, the request will not be rejected, even if the success rate is lower than sr_threshold.booleanThe sliding time window over which the success rate is calculated.booleanDictates the success rate at which the rejection probability is non-zero.boolean.envoy.extensions.filters.http.admission_control.v3.AdmissionControl.SuccessCriteria success_criteria = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic AdmissionControl.Builderstatic AdmissionControl.BuildernewBuilder(AdmissionControl prototype) protected AdmissionControl.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AdmissionControlparseDelimitedFrom(InputStream input) static AdmissionControlparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AdmissionControlparseFrom(byte[] data) static AdmissionControlparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AdmissionControlparseFrom(com.google.protobuf.ByteString data) static AdmissionControlparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AdmissionControlparseFrom(com.google.protobuf.CodedInputStream input) static AdmissionControlparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AdmissionControlparseFrom(InputStream input) static AdmissionControlparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AdmissionControlparseFrom(ByteBuffer data) static AdmissionControlparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AdmissionControl>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER- See Also:
-
SUCCESS_CRITERIA_FIELD_NUMBER
public static final int SUCCESS_CRITERIA_FIELD_NUMBER- See Also:
-
SAMPLING_WINDOW_FIELD_NUMBER
public static final int SAMPLING_WINDOW_FIELD_NUMBER- See Also:
-
AGGRESSION_FIELD_NUMBER
public static final int AGGRESSION_FIELD_NUMBER- See Also:
-
SR_THRESHOLD_FIELD_NUMBER
public static final int SR_THRESHOLD_FIELD_NUMBER- See Also:
-
RPS_THRESHOLD_FIELD_NUMBER
public static final int RPS_THRESHOLD_FIELD_NUMBER- See Also:
-
MAX_REJECTION_PROBABILITY_FIELD_NUMBER
public static final int MAX_REJECTION_PROBABILITY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getEvaluationCriteriaCase
- Specified by:
getEvaluationCriteriaCasein interfaceAdmissionControlOrBuilder
-
hasEnabled
public boolean hasEnabled()If set to false, the admission control filter will operate as a pass-through filter. If the message is unspecified, the filter will be enabled.
.envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;- Specified by:
hasEnabledin interfaceAdmissionControlOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
If set to false, the admission control filter will operate as a pass-through filter. If the message is unspecified, the filter will be enabled.
.envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;- Specified by:
getEnabledin interfaceAdmissionControlOrBuilder- Returns:
- The enabled.
-
getEnabledOrBuilder
If set to false, the admission control filter will operate as a pass-through filter. If the message is unspecified, the filter will be enabled.
.envoy.config.core.v3.RuntimeFeatureFlag enabled = 1;- Specified by:
getEnabledOrBuilderin interfaceAdmissionControlOrBuilder
-
hasSuccessCriteria
public boolean hasSuccessCriteria().envoy.extensions.filters.http.admission_control.v3.AdmissionControl.SuccessCriteria success_criteria = 2;- Specified by:
hasSuccessCriteriain interfaceAdmissionControlOrBuilder- Returns:
- Whether the successCriteria field is set.
-
getSuccessCriteria
.envoy.extensions.filters.http.admission_control.v3.AdmissionControl.SuccessCriteria success_criteria = 2;- Specified by:
getSuccessCriteriain interfaceAdmissionControlOrBuilder- Returns:
- The successCriteria.
-
getSuccessCriteriaOrBuilder
.envoy.extensions.filters.http.admission_control.v3.AdmissionControl.SuccessCriteria success_criteria = 2;- Specified by:
getSuccessCriteriaOrBuilderin interfaceAdmissionControlOrBuilder
-
hasSamplingWindow
public boolean hasSamplingWindow()The sliding time window over which the success rate is calculated. The window is rounded to the nearest second. Defaults to 30s.
.google.protobuf.Duration sampling_window = 3;- Specified by:
hasSamplingWindowin interfaceAdmissionControlOrBuilder- Returns:
- Whether the samplingWindow field is set.
-
getSamplingWindow
public com.google.protobuf.Duration getSamplingWindow()The sliding time window over which the success rate is calculated. The window is rounded to the nearest second. Defaults to 30s.
.google.protobuf.Duration sampling_window = 3;- Specified by:
getSamplingWindowin interfaceAdmissionControlOrBuilder- Returns:
- The samplingWindow.
-
getSamplingWindowOrBuilder
public com.google.protobuf.DurationOrBuilder getSamplingWindowOrBuilder()The sliding time window over which the success rate is calculated. The window is rounded to the nearest second. Defaults to 30s.
.google.protobuf.Duration sampling_window = 3;- Specified by:
getSamplingWindowOrBuilderin interfaceAdmissionControlOrBuilder
-
hasAggression
public boolean hasAggression()Rejection probability is defined by the formula:: max(0, (rq_count - rq_success_count / sr_threshold) / (rq_count + 1)) ^ (1 / aggression) The aggression dictates how heavily the admission controller will throttle requests upon SR dropping at or below the threshold. A value of 1 will result in a linear increase in rejection probability as SR drops. Any values less than 1.0, will be set to 1.0. If the message is unspecified, the aggression is 1.0. See `the admission control documentation <https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/admission_control_filter.html>`_ for a diagram illustrating this..envoy.config.core.v3.RuntimeDouble aggression = 4;- Specified by:
hasAggressionin interfaceAdmissionControlOrBuilder- Returns:
- Whether the aggression field is set.
-
getAggression
Rejection probability is defined by the formula:: max(0, (rq_count - rq_success_count / sr_threshold) / (rq_count + 1)) ^ (1 / aggression) The aggression dictates how heavily the admission controller will throttle requests upon SR dropping at or below the threshold. A value of 1 will result in a linear increase in rejection probability as SR drops. Any values less than 1.0, will be set to 1.0. If the message is unspecified, the aggression is 1.0. See `the admission control documentation <https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/admission_control_filter.html>`_ for a diagram illustrating this..envoy.config.core.v3.RuntimeDouble aggression = 4;- Specified by:
getAggressionin interfaceAdmissionControlOrBuilder- Returns:
- The aggression.
-
getAggressionOrBuilder
Rejection probability is defined by the formula:: max(0, (rq_count - rq_success_count / sr_threshold) / (rq_count + 1)) ^ (1 / aggression) The aggression dictates how heavily the admission controller will throttle requests upon SR dropping at or below the threshold. A value of 1 will result in a linear increase in rejection probability as SR drops. Any values less than 1.0, will be set to 1.0. If the message is unspecified, the aggression is 1.0. See `the admission control documentation <https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/admission_control_filter.html>`_ for a diagram illustrating this..envoy.config.core.v3.RuntimeDouble aggression = 4;- Specified by:
getAggressionOrBuilderin interfaceAdmissionControlOrBuilder
-
hasSrThreshold
public boolean hasSrThreshold()Dictates the success rate at which the rejection probability is non-zero. As success rate drops below this threshold, rejection probability will increase. Any success rate above the threshold results in a rejection probability of 0. Defaults to 95%.
.envoy.config.core.v3.RuntimePercent sr_threshold = 5;- Specified by:
hasSrThresholdin interfaceAdmissionControlOrBuilder- Returns:
- Whether the srThreshold field is set.
-
getSrThreshold
Dictates the success rate at which the rejection probability is non-zero. As success rate drops below this threshold, rejection probability will increase. Any success rate above the threshold results in a rejection probability of 0. Defaults to 95%.
.envoy.config.core.v3.RuntimePercent sr_threshold = 5;- Specified by:
getSrThresholdin interfaceAdmissionControlOrBuilder- Returns:
- The srThreshold.
-
getSrThresholdOrBuilder
Dictates the success rate at which the rejection probability is non-zero. As success rate drops below this threshold, rejection probability will increase. Any success rate above the threshold results in a rejection probability of 0. Defaults to 95%.
.envoy.config.core.v3.RuntimePercent sr_threshold = 5;- Specified by:
getSrThresholdOrBuilderin interfaceAdmissionControlOrBuilder
-
hasRpsThreshold
public boolean hasRpsThreshold()If the average RPS of the sampling window is below this threshold, the request will not be rejected, even if the success rate is lower than sr_threshold. Defaults to 0.
.envoy.config.core.v3.RuntimeUInt32 rps_threshold = 6;- Specified by:
hasRpsThresholdin interfaceAdmissionControlOrBuilder- Returns:
- Whether the rpsThreshold field is set.
-
getRpsThreshold
If the average RPS of the sampling window is below this threshold, the request will not be rejected, even if the success rate is lower than sr_threshold. Defaults to 0.
.envoy.config.core.v3.RuntimeUInt32 rps_threshold = 6;- Specified by:
getRpsThresholdin interfaceAdmissionControlOrBuilder- Returns:
- The rpsThreshold.
-
getRpsThresholdOrBuilder
If the average RPS of the sampling window is below this threshold, the request will not be rejected, even if the success rate is lower than sr_threshold. Defaults to 0.
.envoy.config.core.v3.RuntimeUInt32 rps_threshold = 6;- Specified by:
getRpsThresholdOrBuilderin interfaceAdmissionControlOrBuilder
-
hasMaxRejectionProbability
public boolean hasMaxRejectionProbability()The probability of rejection will never exceed this value, even if the failure rate is rising. Defaults to 80%.
.envoy.config.core.v3.RuntimePercent max_rejection_probability = 7;- Specified by:
hasMaxRejectionProbabilityin interfaceAdmissionControlOrBuilder- Returns:
- Whether the maxRejectionProbability field is set.
-
getMaxRejectionProbability
The probability of rejection will never exceed this value, even if the failure rate is rising. Defaults to 80%.
.envoy.config.core.v3.RuntimePercent max_rejection_probability = 7;- Specified by:
getMaxRejectionProbabilityin interfaceAdmissionControlOrBuilder- Returns:
- The maxRejectionProbability.
-
getMaxRejectionProbabilityOrBuilder
The probability of rejection will never exceed this value, even if the failure rate is rising. Defaults to 80%.
.envoy.config.core.v3.RuntimePercent max_rejection_probability = 7;- Specified by:
getMaxRejectionProbabilityOrBuilderin interfaceAdmissionControlOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AdmissionControl parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdmissionControl parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdmissionControl parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdmissionControl parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdmissionControl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AdmissionControl parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AdmissionControl parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AdmissionControl parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AdmissionControl parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AdmissionControl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AdmissionControl.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-