Class ManagedComputeClusterWorkloadThresholdBasedPolicyDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datascience.model.ManagedComputeClusterWorkloadAutoScalingPolicyDetails
-
- com.oracle.bmc.datascience.model.ManagedComputeClusterWorkloadThresholdBasedPolicyDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190101") public final class ManagedComputeClusterWorkloadThresholdBasedPolicyDetails extends ManagedComputeClusterWorkloadAutoScalingPolicyDetailsDetails for a threshold-based autoscaling policy to enable autoscaling of workload on the managed compute cluster type compute target .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 theManagedComputeClusterWorkloadThresholdBasedPolicyDetails.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 theManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder, which maintain a set of all explicitly set fields calledManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder-
Nested classes/interfaces inherited from class com.oracle.bmc.datascience.model.ManagedComputeClusterWorkloadAutoScalingPolicyDetails
ManagedComputeClusterWorkloadAutoScalingPolicyDetails.AutoScalingPolicyType
-
-
Constructor Summary
Constructors Constructor Description ManagedComputeClusterWorkloadThresholdBasedPolicyDetails(List<ManagedComputeClusterWorkloadMetricExpressionRule> rules, Integer maximumInstanceCount, Integer minimumInstanceCount, Integer initialInstanceCount, ManagedComputeClusterWorkloadScalePolicy scaleInPolicy, ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetInitialInstanceCount()For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch immediately after autoscaling is enabled.IntegergetMaximumInstanceCount()For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out).IntegergetMinimumInstanceCount()For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in).List<ManagedComputeClusterWorkloadMetricExpressionRule>getRules()The list of autoscaling policy rules for workload scaling..ManagedComputeClusterWorkloadScalePolicygetScaleInPolicy()ManagedComputeClusterWorkloadScalePolicygetScaleOutPolicy()inthashCode()ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
ManagedComputeClusterWorkloadThresholdBasedPolicyDetails
@Deprecated public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails(List<ManagedComputeClusterWorkloadMetricExpressionRule> rules, Integer maximumInstanceCount, Integer minimumInstanceCount, Integer initialInstanceCount, ManagedComputeClusterWorkloadScalePolicy scaleInPolicy, ManagedComputeClusterWorkloadScalePolicy scaleOutPolicy)
Deprecated.
-
-
Method Detail
-
builder
public static ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder builder()
Create a new builder.
-
toBuilder
public ManagedComputeClusterWorkloadThresholdBasedPolicyDetails.Builder toBuilder()
-
getRules
public List<ManagedComputeClusterWorkloadMetricExpressionRule> getRules()
The list of autoscaling policy rules for workload scaling..- Returns:
- the value
-
getMaximumInstanceCount
public Integer getMaximumInstanceCount()
For a threshold-based autoscaling policy, this value is the maximum number of workload instances allowed to increase to (scale out).- Returns:
- the value
-
getMinimumInstanceCount
public Integer getMinimumInstanceCount()
For a threshold-based autoscaling policy, this value is the minimum number of workload instances allowed to decrease to (scale in).This should be zero for scale-to-zero.
- Returns:
- the value
-
getInitialInstanceCount
public Integer getInitialInstanceCount()
For a threshold-based autoscaling policy, this value is the initial number of workload instances to launch 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.
- Returns:
- the value
-
getScaleInPolicy
public ManagedComputeClusterWorkloadScalePolicy getScaleInPolicy()
-
getScaleOutPolicy
public ManagedComputeClusterWorkloadScalePolicy getScaleOutPolicy()
-
toString
public String toString()
- Overrides:
toStringin classManagedComputeClusterWorkloadAutoScalingPolicyDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classManagedComputeClusterWorkloadAutoScalingPolicyDetails- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classManagedComputeClusterWorkloadAutoScalingPolicyDetails
-
hashCode
public int hashCode()
- Overrides:
hashCodein classManagedComputeClusterWorkloadAutoScalingPolicyDetails
-
-