Interface MetricDatum.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MetricDatum.Builder,MetricDatum>, SdkBuilder<MetricDatum.Builder,MetricDatum>, SdkPojo
Enclosing class:
MetricDatum

public static interface MetricDatum.Builder extends SdkPojo, CopyableBuilder<MetricDatum.Builder,MetricDatum>
  • Method Details

    • dimensions

      MetricDatum.Builder dimensions(Collection<Dimension> dimensions)

      Internal only. The dimensions associated with the metric.

      Parameters:
      dimensions - Internal only. The dimensions associated with the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      MetricDatum.Builder dimensions(Dimension... dimensions)

      Internal only. The dimensions associated with the metric.

      Parameters:
      dimensions - Internal only. The dimensions associated with the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      MetricDatum.Builder dimensions(Consumer<Dimension.Builder>... dimensions)

      Internal only. The dimensions associated with the metric.

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

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

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

      MetricDatum.Builder metricName(String metricName)

      Internal only. The name of the metric.

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

      MetricDatum.Builder statisticValues(StatisticSet statisticValues)

      Internal only. The statistical values for the metric.

      Parameters:
      statisticValues - Internal only. The statistical values for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statisticValues

      default MetricDatum.Builder statisticValues(Consumer<StatisticSet.Builder> statisticValues)

      Internal only. The statistical values for the metric.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to statisticValues(StatisticSet).

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

      MetricDatum.Builder timestamp(Instant timestamp)

      Internal only. The time the metric data was received.

      Parameters:
      timestamp - Internal only. The time the metric data was received.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unit

      Internal only. The unit used to store the metric.

      Parameters:
      unit - Internal only. The unit used to store the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      Internal only. The unit used to store the metric.

      Parameters:
      unit - Internal only. The unit used to store the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • value

      Internal only. The value for the metric.

      Parameters:
      value - Internal only. The value for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.