PredictiveAutoscalePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. PredictiveAutoscalePolicy
- com.
public final class PredictiveAutoscalePolicy
The parameters for enabling predictive autoscale.
Constructor Summary
Constructor | Description |
---|---|
PredictiveAutoscalePolicy() |
Creates an instance of Predictive |
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration |
scaleLookAheadTime()
Get the scale |
Predictive |
scaleMode()
Get the scale |
void |
validate()
Validates the instance. |
Predictive |
withScaleLookAheadTime(Duration scaleLookAheadTime)
Set the scale |
Predictive |
withScaleMode(PredictiveAutoscalePolicyScaleMode scaleMode)
Set the scale |
Methods inherited from java.lang.Object
Constructor Details
PredictiveAutoscalePolicy
public PredictiveAutoscalePolicy()
Creates an instance of PredictiveAutoscalePolicy class.
Method Details
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:
scaleMode
public PredictiveAutoscalePolicyScaleMode scaleMode()
Get the scaleMode property: the predictive autoscale mode.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withScaleMode
public PredictiveAutoscalePolicy withScaleMode(PredictiveAutoscalePolicyScaleMode scaleMode)
Set the scaleMode property: the predictive autoscale mode.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for