Interface ScaleRule.ParentUpdateDefinitionStages.WithStatistic

    • 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.