Interface PredictiveScalingMetricStat.Builder

    • Method Detail

      • metric

        PredictiveScalingMetricStat.Builder metric​(PredictiveScalingMetric metric)

        The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.

        Parameters:
        metric - The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stat

        PredictiveScalingMetricStat.Builder stat​(String stat)

        The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.

        The most commonly used metrics for predictive scaling are Average and Sum.

        Parameters:
        stat - The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.

        The most commonly used metrics for predictive scaling are Average and Sum.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • unit

        PredictiveScalingMetricStat.Builder unit​(String unit)

        The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.

        Parameters:
        unit - The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
        Returns:
        Returns a reference to this object so that method calls can be chained together.