Interface EfficiencyMetricsByGroup.Builder

  • Method Details

    • metricsByTime

      A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.

      Parameters:
      metricsByTime - A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsByTime

      EfficiencyMetricsByGroup.Builder metricsByTime(MetricsByTime... metricsByTime)

      A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.

      Parameters:
      metricsByTime - A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsByTime

      A list of time-series data points containing efficiency metrics for this group. Each data point includes an efficiency score, estimated savings, spending, and a timestamp corresponding to the specified granularity. This field is null when efficiency metrics cannot be calculated for the group, in which case the message field provides an explanation.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricsByTime(List<MetricsByTime>).

      Parameters:
      metricsByTime - a consumer that will call methods on MetricsByTime.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • group

      The value of the grouping dimension for this set of metrics. For example, if grouped by account ID, this field contains the account ID. If no grouping is specified, this field is empty.

      Parameters:
      group - The value of the grouping dimension for this set of metrics. For example, if grouped by account ID, this field contains the account ID. If no grouping is specified, this field is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      An explanation of why efficiency metrics could not be calculated for this group when the metricsByTime field is null. Common reasons include insufficient or inconclusive cost and usage data during the specified time period. This field is null or empty when metrics are successfully calculated.

      Parameters:
      message - An explanation of why efficiency metrics could not be calculated for this group when the metricsByTime field is null. Common reasons include insufficient or inconclusive cost and usage data during the specified time period. This field is null or empty when metrics are successfully calculated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.