Interface Metric.Builder

    • Method Detail

      • metricName

        Metric.Builder metricName​(String metricName)

        The name of the metric.

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

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

        The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

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

        Parameters:
        dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

        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

        Metric.Builder dimensions​(MetricDimension... dimensions)

        The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

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

        Parameters:
        dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

        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.