PoolEnableAutoScaleParameter Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. PoolEnableAutoScaleParameter
- com.
public class PoolEnableAutoScaleParameter
Options for enabling automatic scaling on a Pool.
Constructor Summary
Constructor | Description | |
---|---|---|
PoolEnableAutoScaleParameter() |
Method Summary
Modifier and Type | Method and Description |
---|---|
org.joda.time.Period |
autoScaleEvaluationInterval()
Get the default value is 15 minutes. |
String |
autoScaleFormula()
Get the formula is checked for validity before it is applied to the Pool. |
Pool |
withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)
Set the default value is 15 minutes. |
Pool |
withAutoScaleFormula(String autoScaleFormula)
Set the formula is checked for validity before it is applied to the Pool. |
Methods inherited from java.lang.Object
Constructor Details
PoolEnableAutoScaleParameter
public PoolEnableAutoScaleParameter()
Method Details
autoScaleEvaluationInterval
public Period autoScaleEvaluationInterval()
Get the default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued.
Returns:
autoScaleFormula
public String autoScaleFormula()
Get the formula is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling).
Returns:
withAutoScaleEvaluationInterval
public PoolEnableAutoScaleParameter withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)
Set the default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued.
Parameters:
Returns:
withAutoScaleFormula
public PoolEnableAutoScaleParameter withAutoScaleFormula(String autoScaleFormula)
Set the formula is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling).
Parameters:
Returns:
Applies to
Azure SDK for Java