ScaleRule Interface
Implements
public interface ScaleRule
extends HasInnerModel<ScaleRuleInner>, HasParent<AutoscaleProfile>
An immutable client-side representation of an Azure autoscale profile scale rule.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Comparison |
condition()
Get the operator that is used to compare the metric data and the threshold. |
abstract Duration |
cooldown()
Get the amount of time to wait since the last scaling action before this action occurs. |
abstract Duration |
duration()
Get the range of time in which instance data is collected. |
abstract Duration |
frequency()
Get the granularity of metrics the rule monitors. |
abstract
Metric |
frequencyStatistic()
Get the metric statistic type. |
abstract String |
metricName()
Get the name of the metric that defines what the rule monitors. |
abstract String |
metricSource()
Get the resource identifier of the resource the rule monitors. |
abstract
Scale |
scaleDirection()
Get the scale direction. |
abstract int |
scaleInstanceCount()
Get the number of instances that are involved in the scaling action. |
abstract
Scale |
scaleType()
Get the type of action that should occur when the scale rule fires. |
abstract double |
threshold()
Get the threshold of the metric that triggers the scale action. |
abstract
Time |
timeAggregation()
Get the time aggregation type. |
Method Details
condition
public abstract ComparisonOperationType condition()
Get the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.
Returns:
cooldown
public abstract Duration cooldown()
Get the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.
Returns:
duration
public abstract Duration duration()
Get the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes.
Returns:
frequency
public abstract Duration frequency()
Get the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute.
Returns:
frequencyStatistic
public abstract MetricStatisticType frequencyStatistic()
Get the metric statistic type. How the metrics from multiple instances are combined. Possible values include: 'Average', 'Min', 'Max', 'Sum'.
Returns:
metricName
public abstract String metricName()
Get the name of the metric that defines what the rule monitors.
Returns:
metricSource
public abstract String metricSource()
Get the resource identifier of the resource the rule monitors.
Returns:
scaleDirection
public abstract ScaleDirection scaleDirection()
Get the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease'.
Returns:
scaleInstanceCount
public abstract int scaleInstanceCount()
Get the number of instances that are involved in the scaling action.
Returns:
scaleType
public abstract ScaleType scaleType()
Get the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount'.
Returns:
threshold
public abstract double threshold()
Get the threshold of the metric that triggers the scale action.
Returns:
timeAggregation
public abstract TimeAggregationType timeAggregation()
Get the time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count'.
Returns:
Applies to
Azure SDK for Java