ScaleRule.Update Interface
Implements
public static interface ScaleRule.Update
extends Settable<Update>
Grouping of scale rule update stages.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Update |
withCondition(TimeAggregationType timeAggregation, ComparisonOperationType condition, double threshold)
Updates the condition to monitor for the current metric alert. |
abstract Update |
withMetricName(String metricName)
the name of the metric that defines what the rule monitors. |
abstract Update |
withMetricSource(String metricSourceResourceId)
Updates the resource identifier of the resource the rule monitors. |
abstract Update |
withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Duration cooldown)
Updates the action to be performed when the scale rule will be active. |
abstract Update |
withStatistic()
Sets statistics for autoscale trigger action with default values of 10 minutes for duration, 1 minute for frequency(time grain) and 'Average' for statistic type. |
abstract Update |
withStatistic(Duration duration)
Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain) and 'Average' for statistic type. |
abstract Update |
withStatistic(Duration duration, MetricStatisticType statisticType)
Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain). |
abstract Update |
withStatistic(Duration duration, Duration frequency, MetricStatisticType statisticType)
Updates the statistics for autoscale trigger action. |
Method Details
withCondition
public abstract ScaleRule.Update withCondition(TimeAggregationType timeAggregation, ComparisonOperationType condition, double threshold)
Updates the condition to monitor for the current metric alert.
Parameters:
Returns:
withMetricName
public abstract ScaleRule.Update withMetricName(String metricName)
the name of the metric that defines what the rule monitors.
Parameters:
Returns:
withMetricSource
public abstract ScaleRule.Update withMetricSource(String metricSourceResourceId)
Updates the resource identifier of the resource the rule monitors.
Parameters:
Returns:
withScaleAction
public abstract ScaleRule.Update withScaleAction(ScaleDirection direction, ScaleType type, int instanceCountChange, Duration cooldown)
Updates the action to be performed when the scale rule will be active.
Parameters:
Returns:
withStatistic
public abstract ScaleRule.Update withStatistic()
Sets statistics for autoscale trigger action with default values of 10 minutes for duration, 1 minute for frequency(time grain) and 'Average' for statistic type.
Returns:
withStatistic
public abstract ScaleRule.Update withStatistic(Duration duration)
Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain) and 'Average' for statistic type.
Parameters:
Returns:
withStatistic
public abstract ScaleRule.Update withStatistic(Duration duration, MetricStatisticType statisticType)
Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain).
Parameters:
Returns:
withStatistic
public abstract ScaleRule.Update withStatistic(Duration duration, Duration frequency, MetricStatisticType statisticType)
Updates the statistics for autoscale trigger action.
Parameters:
Returns:
Applies to
Azure SDK for Java