@Generated(value="OracleSDKGenerator", comments="API Version: 20190101") public final class ThresholdBasedAutoScalingPolicyDetails extends AutoScalingPolicyDetails
Details for a threshold-based autoscaling policy to enable on the model deployment. In a
threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric
meets or exceeds a threshold.
Note: Objects should always be created or deserialized using the ThresholdBasedAutoScalingPolicyDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the ThresholdBasedAutoScalingPolicyDetails.Builder
, which maintain a
set of all explicitly set fields called ThresholdBasedAutoScalingPolicyDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ThresholdBasedAutoScalingPolicyDetails.Builder |
AutoScalingPolicyDetails.AutoScalingPolicyType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ThresholdBasedAutoScalingPolicyDetails(List<MetricExpressionRule> rules,
Integer maximumInstanceCount,
Integer minimumInstanceCount,
Integer initialInstanceCount)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ThresholdBasedAutoScalingPolicyDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getInitialInstanceCount()
For a threshold-based autoscaling policy, this value is the initial number of instances to
launch in the model deployment immediately after autoscaling is enabled.
|
Integer |
getMaximumInstanceCount()
For a threshold-based autoscaling policy, this value is the maximum number of instances the
model deployment is allowed to increase to (scale out).
|
Integer |
getMinimumInstanceCount()
For a threshold-based autoscaling policy, this value is the minimum number of instances the
model deployment is allowed to decrease to (scale in).
|
List<MetricExpressionRule> |
getRules()
The list of autoscaling policy rules.
|
int |
hashCode() |
ThresholdBasedAutoScalingPolicyDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public ThresholdBasedAutoScalingPolicyDetails(List<MetricExpressionRule> rules, Integer maximumInstanceCount, Integer minimumInstanceCount, Integer initialInstanceCount)
public static ThresholdBasedAutoScalingPolicyDetails.Builder builder()
Create a new builder.
public ThresholdBasedAutoScalingPolicyDetails.Builder toBuilder()
public List<MetricExpressionRule> getRules()
The list of autoscaling policy rules.
public Integer getMaximumInstanceCount()
For a threshold-based autoscaling policy, this value is the maximum number of instances the model deployment is allowed to increase to (scale out).
public Integer getMinimumInstanceCount()
For a threshold-based autoscaling policy, this value is the minimum number of instances the model deployment is allowed to decrease to (scale in).
public Integer getInitialInstanceCount()
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the model deployment immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
public String toString()
toString
in class AutoScalingPolicyDetails
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class AutoScalingPolicyDetails
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class AutoScalingPolicyDetails
public int hashCode()
hashCode
in class AutoScalingPolicyDetails
Copyright © 2016–2024. All rights reserved.