Class AutoScalingPolicy


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190101")
    public final class AutoScalingPolicy
    extends ScalingPolicy
    The scaling policy to enable autoscaling on the model deployment.
    Note: Objects should always be created or deserialized using the AutoScalingPolicy.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 AutoScalingPolicy.Builder, which maintain a set of all explicitly set fields called AutoScalingPolicy.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).
    • Method Detail

      • getCoolDownInSeconds

        public Integer getCoolDownInSeconds()
        For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions.

        The cooldown period gives the system time to stabilize before rescaling. The minimum value is 600 seconds, which is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation.

        Returns:
        the value
      • getIsEnabled

        public Boolean getIsEnabled()
        Whether the autoscaling policy is enabled.
        Returns:
        the value
      • getAutoScalingPolicies

        public List<AutoScalingPolicyDetails> getAutoScalingPolicies()
        The list of autoscaling policy details.
        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class ScalingPolicy
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation