Class ScaleCapacity
java.lang.Object
com.microsoft.azure.management.monitor.ScaleCapacity
The number of instances that can be used during this profile.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the number of instances that will be set if metrics are not available for evaluation.maximum()
Get the maximum number of instances for the resource.minimum()
Get the minimum number of instances for the resource.withDefaultProperty
(String defaultProperty) Set the number of instances that will be set if metrics are not available for evaluation.withMaximum
(String maximum) Set the maximum number of instances for the resource.withMinimum
(String minimum) Set the minimum number of instances for the resource.
-
Constructor Details
-
ScaleCapacity
public ScaleCapacity()
-
-
Method Details
-
minimum
Get the minimum number of instances for the resource.- Returns:
- the minimum value
-
withMinimum
Set the minimum number of instances for the resource.- Parameters:
minimum
- the minimum value to set- Returns:
- the ScaleCapacity object itself.
-
maximum
Get the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.- Returns:
- the maximum value
-
withMaximum
Set the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.- Parameters:
maximum
- the maximum value to set- Returns:
- the ScaleCapacity object itself.
-
defaultProperty
Get the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.- Returns:
- the defaultProperty value
-
withDefaultProperty
Set the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.- Parameters:
defaultProperty
- the defaultProperty value to set- Returns:
- the ScaleCapacity object itself.
-