Interface ScaleRule.DefinitionStages.WithStatistic

All Known Subinterfaces:
ScaleRule.Definition
Enclosing interface:
ScaleRule.DefinitionStages

public static interface ScaleRule.DefinitionStages.WithStatistic
The stage of the definition which specifies what kind of statistics should be used to calculate autoscale trigger action.
  • Method Details

    • withStatistic

      ScaleRule.DefinitionStages.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

      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

      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

      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.