Interface MetricsByTime.Builder

  • Method Details

    • score

      The efficiency score for this time period. The score represents a measure of how effectively the cloud resources are being optimized, with higher scores indicating better optimization performance.

      Parameters:
      score - The efficiency score for this time period. The score represents a measure of how effectively the cloud resources are being optimized, with higher scores indicating better optimization performance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • savings

      MetricsByTime.Builder savings(Double savings)

      The estimated savings amount for this time period, representing the potential cost reduction achieved through optimization recommendations.

      Parameters:
      savings - The estimated savings amount for this time period, representing the potential cost reduction achieved through optimization recommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spend

      The total spending amount for this time period.

      Parameters:
      spend - The total spending amount for this time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timestamp

      MetricsByTime.Builder timestamp(String timestamp)

      The timestamp for this data point. The format depends on the granularity: YYYY-MM-DD for daily metrics, or YYYY-MM for monthly metrics.

      Parameters:
      timestamp - The timestamp for this data point. The format depends on the granularity: YYYY-MM-DD for daily metrics, or YYYY-MM for monthly metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.