Interface ScaleRule.ParentUpdateDefinitionStages.WithStatistic
-
- All Known Subinterfaces:
ScaleRule.ParentUpdateDefinition
- Enclosing interface:
- ScaleRule.ParentUpdateDefinitionStages
public static interface ScaleRule.ParentUpdateDefinitionStages.WithStatisticThe stage of the definition which specifies what kind of statistics should be used to calculate autoscale trigger action.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScaleRule.ParentUpdateDefinitionStages.WithConditionwithStatistic()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.ScaleRule.ParentUpdateDefinitionStages.WithConditionwithStatistic(Duration duration)Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain) and 'Average' for statistic type.ScaleRule.ParentUpdateDefinitionStages.WithConditionwithStatistic(Duration duration, MetricStatisticType statisticType)Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain).ScaleRule.ParentUpdateDefinitionStages.WithConditionwithStatistic(Duration duration, Duration frequency, MetricStatisticType statisticType)Sets statistics for autoscale trigger action.
-
-
-
Method Detail
-
withStatistic
ScaleRule.ParentUpdateDefinitionStages.WithCondition withStatistic(Duration duration, Duration frequency, MetricStatisticType statisticType)
Sets statistics for autoscale trigger action.- Parameters:
duration- 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.frequency- 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.statisticType- the metric statistic type. How the metrics from multiple instances are combined. Possible values include: 'Average', 'Min', 'Max', 'Sum'.- Returns:
- the next stage of the definition.
-
withStatistic
ScaleRule.ParentUpdateDefinitionStages.WithCondition 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:
- the next stage of the definition.
-
withStatistic
ScaleRule.ParentUpdateDefinitionStages.WithCondition 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:
duration- 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:
- the next stage of the definition.
-
withStatistic
ScaleRule.ParentUpdateDefinitionStages.WithCondition withStatistic(Duration duration, MetricStatisticType statisticType)
Sets statistics for autoscale trigger action with default values of 1 minute for frequency(time grain).- Parameters:
duration- 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.statisticType- the metric statistic type. How the metrics from multiple instances are combined. Possible values include: 'Average', 'Min', 'Max', 'Sum'.- Returns:
- the next stage of the definition.
-
-