Interface CustomizedMetricSpecification.Builder

    • Method Detail

      • metricName

        CustomizedMetricSpecification.Builder metricName​(String metricName)

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

        Parameters:
        metricName - The name of the metric. 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.
      • namespace

        CustomizedMetricSpecification.Builder namespace​(String namespace)

        The namespace of the metric.

        Parameters:
        namespace - The namespace of the metric.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensions

        CustomizedMetricSpecification.Builder dimensions​(Collection<MetricDimension> dimensions)

        The dimensions of the metric.

        Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

        Parameters:
        dimensions - The dimensions of the metric.

        Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

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

        CustomizedMetricSpecification.Builder dimensions​(MetricDimension... dimensions)

        The dimensions of the metric.

        Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

        Parameters:
        dimensions - The dimensions of the metric.

        Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

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

        CustomizedMetricSpecification.Builder unit​(String unit)

        The unit of the metric. 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 of the metric. 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.
      • metrics

        CustomizedMetricSpecification.Builder metrics​(Collection<TargetTrackingMetricDataQuery> metrics)

        The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.

        Parameters:
        metrics - The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        CustomizedMetricSpecification.Builder metrics​(TargetTrackingMetricDataQuery... metrics)

        The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.

        Parameters:
        metrics - The metrics to include in the target tracking scaling policy, as a metric data query. This can include both raw metric and metric math expressions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.