Interface Record.Builder

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

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

    • dimensions

      Record.Builder dimensions(Collection<Dimension> dimensions)

      Contains the list of dimensions for time-series data points.

      Parameters:
      dimensions - Contains the list of dimensions for time-series data points.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      Record.Builder dimensions(Dimension... dimensions)

      Contains the list of dimensions for time-series data points.

      Parameters:
      dimensions - Contains the list of dimensions for time-series data points.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

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

      Contains the list of dimensions for time-series data points.

      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:
    • measureName

      Record.Builder measureName(String measureName)

      Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.

      Parameters:
      measureName - Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measureValue

      Record.Builder measureValue(String measureValue)

      Contains the measure value for the time-series data point.

      Parameters:
      measureValue - Contains the measure value for the time-series data point.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measureValueType

      Record.Builder measureValueType(String measureValueType)

      Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.

      Parameters:
      measureValueType - Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • measureValueType

      Record.Builder measureValueType(MeasureValueType measureValueType)

      Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.

      Parameters:
      measureValueType - Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • time

      Record.Builder time(String time)

      Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is 12345 and the unit is ms, then 12345 ms have elapsed since the epoch.

      Parameters:
      time - Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is 12345 and the unit is ms, then 12345 ms have elapsed since the epoch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeUnit

      Record.Builder timeUnit(String timeUnit)

      The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.

      Parameters:
      timeUnit - The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timeUnit

      Record.Builder timeUnit(TimeUnit timeUnit)

      The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.

      Parameters:
      timeUnit - The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • version

      Record.Builder version(Long version)

      64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version will still be updated. Default value is 1.

      Version must be 1 or greater, or you will receive a ValidationException error.

      Parameters:
      version - 64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version will still be updated. Default value is 1.

      Version must be 1 or greater, or you will receive a ValidationException error.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measureValues

      Record.Builder measureValues(Collection<MeasureValue> measureValues)

      Contains the list of MeasureValue for time-series data points.

      This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

      Parameters:
      measureValues - Contains the list of MeasureValue for time-series data points.

      This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measureValues

      Record.Builder measureValues(MeasureValue... measureValues)

      Contains the list of MeasureValue for time-series data points.

      This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

      Parameters:
      measureValues - Contains the list of MeasureValue for time-series data points.

      This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measureValues

      Record.Builder measureValues(Consumer<MeasureValue.Builder>... measureValues)

      Contains the list of MeasureValue for time-series data points.

      This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

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

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

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