public static final class V2beta2Autoscaling.HPAScalingRules extends com.google.protobuf.GeneratedMessageV3 implements V2beta2Autoscaling.HPAScalingRulesOrBuilder
HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.Protobuf type
k8s.io.api.autoscaling.v2beta2.HPAScalingRules| Modifier and Type | Class and Description |
|---|---|
static class |
V2beta2Autoscaling.HPAScalingRules.Builder
HPAScalingRules configures the scaling behavior for one direction.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static com.google.protobuf.Parser<V2beta2Autoscaling.HPAScalingRules> |
PARSER
Deprecated.
|
static int |
POLICIES_FIELD_NUMBER |
static int |
SELECTPOLICY_FIELD_NUMBER |
static int |
STABILIZATIONWINDOWSECONDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static V2beta2Autoscaling.HPAScalingRules |
getDefaultInstance() |
V2beta2Autoscaling.HPAScalingRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<V2beta2Autoscaling.HPAScalingRules> |
getParserForType() |
V2beta2Autoscaling.HPAScalingPolicy |
getPolicies(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
int |
getPoliciesCount()
policies is a list of potential scaling polices which can be used during scaling.
|
List<V2beta2Autoscaling.HPAScalingPolicy> |
getPoliciesList()
policies is a list of potential scaling polices which can be used during scaling.
|
V2beta2Autoscaling.HPAScalingPolicyOrBuilder |
getPoliciesOrBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling.
|
List<? extends V2beta2Autoscaling.HPAScalingPolicyOrBuilder> |
getPoliciesOrBuilderList()
policies is a list of potential scaling polices which can be used during scaling.
|
String |
getSelectPolicy()
selectPolicy is used to specify which policy should be used.
|
com.google.protobuf.ByteString |
getSelectPolicyBytes()
selectPolicy is used to specify which policy should be used.
|
int |
getSerializedSize() |
int |
getStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be
considered while scaling up or scaling down.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasSelectPolicy()
selectPolicy is used to specify which policy should be used.
|
boolean |
hasStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be
considered while scaling up or scaling down.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V2beta2Autoscaling.HPAScalingRules.Builder |
newBuilder() |
static V2beta2Autoscaling.HPAScalingRules.Builder |
newBuilder(V2beta2Autoscaling.HPAScalingRules prototype) |
V2beta2Autoscaling.HPAScalingRules.Builder |
newBuilderForType() |
protected V2beta2Autoscaling.HPAScalingRules.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V2beta2Autoscaling.HPAScalingRules |
parseDelimitedFrom(InputStream input) |
static V2beta2Autoscaling.HPAScalingRules |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(byte[] data) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(ByteBuffer data) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(com.google.protobuf.ByteString data) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(InputStream input) |
static V2beta2Autoscaling.HPAScalingRules |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V2beta2Autoscaling.HPAScalingRules> |
parser() |
V2beta2Autoscaling.HPAScalingRules.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int STABILIZATIONWINDOWSECONDS_FIELD_NUMBER
public static final int SELECTPOLICY_FIELD_NUMBER
public static final int POLICIES_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V2beta2Autoscaling.HPAScalingRules> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional
optional int32 stabilizationWindowSeconds = 3;hasStabilizationWindowSeconds in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic int getStabilizationWindowSeconds()
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional
optional int32 stabilizationWindowSeconds = 3;getStabilizationWindowSeconds in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic boolean hasSelectPolicy()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;hasSelectPolicy in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic String getSelectPolicy()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;getSelectPolicy in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic com.google.protobuf.ByteString getSelectPolicyBytes()
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. +optional
optional string selectPolicy = 1;getSelectPolicyBytes in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic List<V2beta2Autoscaling.HPAScalingPolicy> getPoliciesList()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesList in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic List<? extends V2beta2Autoscaling.HPAScalingPolicyOrBuilder> getPoliciesOrBuilderList()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesOrBuilderList in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic int getPoliciesCount()
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesCount in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingPolicy getPolicies(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPolicies in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic V2beta2Autoscaling.HPAScalingPolicyOrBuilder getPoliciesOrBuilder(int index)
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional
repeated .k8s.io.api.autoscaling.v2beta2.HPAScalingPolicy policies = 2;getPoliciesOrBuilder in interface V2beta2Autoscaling.HPAScalingRulesOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V2beta2Autoscaling.HPAScalingRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(InputStream input) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V2beta2Autoscaling.HPAScalingRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V2beta2Autoscaling.HPAScalingRules.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V2beta2Autoscaling.HPAScalingRules.Builder newBuilder()
public static V2beta2Autoscaling.HPAScalingRules.Builder newBuilder(V2beta2Autoscaling.HPAScalingRules prototype)
public V2beta2Autoscaling.HPAScalingRules.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V2beta2Autoscaling.HPAScalingRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V2beta2Autoscaling.HPAScalingRules getDefaultInstance()
public static com.google.protobuf.Parser<V2beta2Autoscaling.HPAScalingRules> parser()
public com.google.protobuf.Parser<V2beta2Autoscaling.HPAScalingRules> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V2beta2Autoscaling.HPAScalingRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.