Interface MetricDatum.Builder

    • Method Detail

      • 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).

        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:
        #dimensions(java.util.Collection)
      • 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.
      • 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

        MetricDatum.Builder unit​(String 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, Unit
      • unit

        MetricDatum.Builder unit​(Unit 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, Unit
      • value

        MetricDatum.Builder value​(Double 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.