Class PredictiveAutoscalePolicy

java.lang.Object
com.azure.resourcemanager.monitor.models.PredictiveAutoscalePolicy

public final class PredictiveAutoscalePolicy extends Object
The parameters for enabling predictive autoscale.
  • Constructor Details

    • PredictiveAutoscalePolicy

      public PredictiveAutoscalePolicy()
      Creates an instance of PredictiveAutoscalePolicy class.
  • Method Details

    • scaleMode

      Get the scaleMode property: the predictive autoscale mode.
      Returns:
      the scaleMode value.
    • withScaleMode

      Set the scaleMode property: the predictive autoscale mode.
      Parameters:
      scaleMode - the scaleMode value to set.
      Returns:
      the PredictiveAutoscalePolicy object itself.
    • scaleLookAheadTime

      public Duration scaleLookAheadTime()
      Get the scaleLookAheadTime property: the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
      Returns:
      the scaleLookAheadTime value.
    • withScaleLookAheadTime

      public PredictiveAutoscalePolicy withScaleLookAheadTime(Duration scaleLookAheadTime)
      Set the scaleLookAheadTime property: the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format.
      Parameters:
      scaleLookAheadTime - the scaleLookAheadTime value to set.
      Returns:
      the PredictiveAutoscalePolicy object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.