Interface MetricDataResult.Builder

    • Method Detail

      • dimension

        MetricDataResult.Builder dimension​(CapacityManagerDimension dimension)

        The dimension values that identify this specific data point, such as account ID, region, and instance family.

        Parameters:
        dimension - The dimension values that identify this specific data point, such as account ID, region, and instance family.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timestamp

        MetricDataResult.Builder timestamp​(Instant timestamp)

        The timestamp for this data point, indicating when the capacity usage occurred.

        Parameters:
        timestamp - The timestamp for this data point, indicating when the capacity usage occurred.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricValues

        MetricDataResult.Builder metricValues​(Collection<MetricValue> metricValues)

        The metric values and statistics for this data point, containing the actual capacity usage numbers.

        Parameters:
        metricValues - The metric values and statistics for this data point, containing the actual capacity usage numbers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricValues

        MetricDataResult.Builder metricValues​(MetricValue... metricValues)

        The metric values and statistics for this data point, containing the actual capacity usage numbers.

        Parameters:
        metricValues - The metric values and statistics for this data point, containing the actual capacity usage numbers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricValues

        MetricDataResult.Builder metricValues​(Consumer<MetricValue.Builder>... metricValues)

        The metric values and statistics for this data point, containing the actual capacity usage numbers.

        This is a convenience method that creates an instance of the MetricValue.Builder avoiding the need to create one manually via MetricValue.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #metricValues(List).

        Parameters:
        metricValues - a consumer that will call methods on MetricValue.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #metricValues(java.util.Collection)